xref: /PHP-8.3/ext/opcache/tests/opt/gh8140a.phpt (revision 9a90bd70)
1--TEST--
2GH-8140 (Wrong first class callable by name optimization)
3--FILE--
4<?php
5namespace Test;
6
7function greeter(string $name) {
8  echo "Hello, {$name}!";
9}
10
11$mycallable = greeter(...);
12
13$mycallable("world");
14?>
15--EXPECT--
16Hello, world!
17