3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,3,4]; $m = []; $b = array_walk($a,function($c){ static $m; global $m = $c . $m; });
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '=', expecting ',' or ';' in /in/L8Y8V on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/L8Y8V on line 2
Process exited with code 255.

preferences:
179.74 ms | 1394 KiB | 67 Q