3v4l.org

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