3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 20; $b = 9; $c = 6; $d = 40; $mA = array(); for($i=0;$i<30;$i++) { $mA[] = $a*$i; } print_r($mA)
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected end of file in /in/fkfIe on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/fkfIe on line 15
Process exited with code 255.

preferences:
178.04 ms | 1395 KiB | 61 Q