3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \StdClass(); $a->a = 1; var_dump($a); unset($a->a); var_dump($a);
Output for 5.3.0 - 7.2.0
object(stdClass)#1 (1) { ["a"]=> int(1) } object(stdClass)#1 (0) { }
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3giDE on line 2 object(stdClass)#1 (1) { ["a"]=> int(1) } object(stdClass)#1 (0) { }
Output for 4.3.0 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3giDE on line 2 object(stdClass)(1) { ["a"]=> int(1) } object(stdClass)(0) { }