3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fantastic3($n) { $a=array(); $a[0]=0; $a[1]=1; $a[2]=1; for($i=3;$i<=$n;$i++){ $a[$i]=$a[$i-1]+$a[$i-2]+$a[$i-3]; } return $a[$n]; } ecgi fantastic3(5); ?>
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected 'fantastic3' (T_STRING) in /in/qBSmK on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/qBSmK on line 17
Process exited with code 255.

preferences:
184 ms | 1395 KiB | 68 Q