3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($r=1; $s>=$r; r++) { for($p=$s-$r; $p>=1; $p--) echo(" "); for($c=1; c<=$r; c++) print_r($c); for($x=$r-1; $x>=1; x--) print_r($x); }
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '++' (T_INC), expecting ')' in /in/pZLL5 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_INC, expecting ')' in /in/pZLL5 on line 5
Process exited with code 255.