3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 6; if ($x > 4) { if ($x = 5) { echo $x; } else { echo $x--; } } else { echo $x++; }
based on I0lkZ
Output for 4.3.0 - 7.1.0
5