File size: 227 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
GH-8140 (Wrong first class callable by name optimization)
--FILE--
<?php
$mycallable = greeter(...);

function greeter(string $name) {
    echo "Hello, {$name}!";
}
  
$mycallable("world");
?>
--EXPECT--
Hello, world!