3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {} $f1 = new Foo; $f2 = $f1; $f3 = new Foo; var_dump($f1 == $f3); var_dump($f1 === $f3); var_dump($f1 === $f2);
Output for 5.0.0 - 7.2.0
bool(true) bool(false) bool(true)
Output for 4.3.0 - 4.4.9
bool(true) bool(true) bool(true)