3v4l.org

run code in 300+ PHP versions simultaneously
<?php php -r 'class foo { static function bar(){} };function x(callable $x) {}; $a=array("foo","bar"); x($a);' ?>
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected ''class foo { static function b' (T_CONSTANT_ENCAPSED_STRING) in /in/BuRBa on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/BuRBa on line 1
Process exited with code 255.

preferences:
180.29 ms | 1395 KiB | 43 Q