3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; while($i < 60000) { $data1[] = rand(); } function cube($n){ return ($n*$n*$n) } $b = array_map("cube", $data1);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/hQjO1 on line 10
Process exited with code 255.

preferences:
181.73 ms | 1395 KiB | 61 Q