3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 6; if ($x > 4) { if ($x = 5) { echo $i; } else { echo $i--; } } else { echo $i++; }
based on SdWtA
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: i in /in/I0lkZ on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: i in /in/I0lkZ on line 7