3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prev = $x = $fprev = $sum = 0; $loop = 8; for($c === 1) { $x = $c; $fprev = $x; echo $x. ' | '; } else if($c === 2){ $x = $c; $prev = $x; echo $x ' | '; } else { $x = $prev + $fprev; $fprev = $prev; $prev = $x; echo $x; }
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected ')', expecting ';' in /in/tR21D on line 5
Process exited with code 255.