3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $object1 = new \stdClass; var_dump($object1); $object2 = new \stdClass; var_dump($object2); echo ($object1 == $object2) ? 'Equivalent objects' : 'Objects not equivalent'; echo ($object1 === $object2) ? 'Equal objects' : 'Objects not equal';
based on a8ta2
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
object(stdClass)#1 (0) { } object(stdClass)#2 (0) { } Equivalent objectsObjects not equal
Output for hhvm-3.10.0

Process exited with code 137.
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/pJq45 on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/pJq45 on line 5 object(stdClass)#1 (0) { } object(stdClass)#2 (0) { } Equivalent objectsObjects not equal
Output for 4.3.0 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/pJq45 on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/pJq45 on line 5 object(stdClass)(0) { } object(stdClass)(0) { } Equivalent objectsEqual objects