3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { private $p; } $a1 = new A(); $a2 = $a1; print_r($a1) unset($a1); print_r($a1)
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'unset' (T_UNSET) in /in/vBbNm on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_UNSET in /in/vBbNm on line 18
Process exited with code 255.