3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_walk([1,2,3,4,5], function($value, $key){ echo "%". $value; });
Output for 5.4.0 - 5.4.21
Fatal error: Only variables can be passed by reference in /in/Ne1SN on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/Ne1SN on line 3
Process exited with code 255.

preferences:
190.62 ms | 1395 KiB | 57 Q