3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function (string $toto): string { return 'xx'; } }
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected '(', expecting identifier (T_STRING) in /in/bAfUo on line 4
Process exited with code 255.

preferences:
170.77 ms | 1399 KiB | 22 Q