3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $doc = new \stdClass(); $doc->docId = 111111; $doc->name = 'demo'; print_r($doc);
Output for 5.3.0 - 7.2.0
stdClass Object ( [docId] => 111111 [name] => demo )
Output for 4.3.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5Gagt on line 3 stdClass Object ( [docId] => 111111 [name] => demo )