3v4l.org

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