3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(0 == true); var_dump(1 == true); var_dump($undef == true);
Output for 5.0.4 - 7.2.0
bool(false) bool(true) Notice: Undefined variable: undef in /in/8fJ2m on line 5 bool(false)
Output for 4.3.0 - 5.0.3
bool(false) bool(true) Notice: Undefined variable: undef in /in/8fJ2m on line 5 bool(false)