3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $b = 2; $a = true ? $a : $b = 1; var_dump($a, $b);
based on qNvLS
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: a in /in/ZPbCh on line 3 NULL int(2)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/ZPbCh on line 3 NULL int(2)