3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 2; $y = '2'; $z; $x == $y ? $z = 'sim' : $z = 'false'; echo $z;
based on gfji6
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
sim
Output for 5.0.4 - 5.0.5, hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: z in /in/ltcCT on line 4 sim
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: z in /in/ltcCT on line 4 sim