3v4l.org

run code in 200+ 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 - 7.1.10
sim
Output for 5.0.4 - 5.0.5
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