3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $object1 = new \stdClass; var_dump($object1); $object2 = new \stdClass; var_dump($object2);
Output for 5.3.0 - 7.1.0
object(stdClass)#1 (0) { } object(stdClass)#2 (0) { }
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/U6iNt on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/U6iNt on line 5 object(stdClass)#1 (0) { } object(stdClass)#2 (0) { }
Output for 4.3.0 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/U6iNt on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/U6iNt on line 5 object(stdClass)(0) { } object(stdClass)(0) { }