3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=1;$b=2; $result; if($y=$a>$b){$result='true';} else{$result='false';} if($y>0||$y=$a)$y=$b; echo 'result:'.$result."\n"; echo 'output:'.$y;
based on eeICi
Output for 5.1.0 - 7.1.0
result:false output:2
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: result in /in/FR29c on line 3 result:false output:2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/FR29c on line 3 result:false output:2