3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { } $test1 = new Test(); $test2 = new Test(); var_dump($test1); var_dump($test2); var_dump($test1 == $test2); var_dump($test1 === $test2);
based on v4RhR
Output for 5.0.0 - 7.2.0
object(Test)#1 (0) { } object(Test)#2 (0) { } bool(true) bool(false)
Output for 4.3.0 - 4.4.9
object(test)(0) { } object(test)(0) { } bool(true) bool(true)