3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($foo = true && $foo == true) { echo 'true'; } if ($foo = false) { echo 'false'; } if ($foo = null) { echo 'null'; }
based on 6fGmc
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: foo in /in/Ul8Hq on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: foo in /in/Ul8Hq on line 3