3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myvar1 = false; $myvar3; $myvar2 = $myvar1; $myvar4 = $myvar3; var_dump($myvar2); var_dump($myvar3); var_dump($myvar4);
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: myvar3 in /in/OqB7E on line 6 bool(false) Notice: Undefined variable: myvar3 in /in/OqB7E on line 9 NULL NULL
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: myvar3 in /in/OqB7E on line 4 Notice: Undefined variable: myvar3 in /in/OqB7E on line 6 bool(false) Notice: Undefined variable: myvar3 in /in/OqB7E on line 9 NULL NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: myvar3 in /in/OqB7E on line 4 Notice: Undefined variable: myvar3 in /in/OqB7E on line 6 bool(false) Notice: Undefined variable: myvar3 in /in/OqB7E on line 9 NULL NULL