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