3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(callable $test) { } test(function () {}); test('rand'); test(create_function('', '')); test([new SplFixedArray, 'count']);
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/FfZsF on line 9
Output for 5.4.1 - 7.1.10
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/FfZsF on line 10
Process exited with code 255.