3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } class B { } $a = new A; $b = new B; $c = new A; var_dump($a == $a); var_dump($a == $b); var_dump($a == $c);
Output for 4.3.0 - 7.2.0
bool(true) bool(false) bool(true)