3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo ($a==(($b==1)?2:$c++)?"test":"damn");
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: b in /in/J0l8o on line 2 Notice: Undefined variable: c in /in/J0l8o on line 2 Notice: Undefined variable: a in /in/J0l8o on line 2 test
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: a in /in/J0l8o on line 2 Notice: Undefined variable: b in /in/J0l8o on line 2 Notice: Undefined variable: c in /in/J0l8o on line 2 test
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/J0l8o on line 2 Notice: Undefined variable: b in /in/J0l8o on line 2 Notice: Undefined variable: c in /in/J0l8o on line 2 test