File size: 240 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
GH-8140 (Wrong first class callable by name optimization)
--FILE--
<?php
namespace Test;

function greeter(string $name) {
  echo "Hello, {$name}!";
}

$mycallable = greeter(...);

$mycallable("world");
?>
--EXPECT--
Hello, world!