3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3,4); array_walk($a, function(&item) use ($a) { $item *= 2; }); print_r($a);
Output for 5.4.0 - 5.4.8
Parse error: syntax error, unexpected 'item' (T_STRING), expecting variable (T_VARIABLE) in K3dsL on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.18
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in K3dsL on line 4
Process exited with code 255.

preferences:
240.02 ms | 1395 KiB | 35 Q