3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=4;$b=2; $result; $y=$a>$b; if($y>0)$y=$a; else $y=$b; echo 'output:'.$y;
based on GqJcS
Output for 5.1.0 - 7.1.0
output:4
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: result in /in/I24IJ on line 3 output:4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/I24IJ on line 3 output:4