3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { } $a1 = new A(); $a2 = $a1; print_r($a1); unset($a1); print_r($a1);
Output for 5.0.4 - 7.1.0
A Object ( ) Notice: Undefined variable: a1 in /in/o1ear on line 19
Output for 5.0.0 - 5.0.3
A Object ( ) Notice: Undefined variable: a1 in /in/o1ear on line 19
Output for 4.3.0 - 4.4.9
a Object ( ) Notice: Undefined variable: a1 in /in/o1ear on line 19