3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class boo { } $x = new boo; $y = new boo; $z = $y; var_export( $x == $y ); var_export( $x == $z ); var_export( $y == $z ); var_export( $x === $y ); var_export( $x === $z ); var_export( $y === $z );
Output for 5.0.0 - 7.2.0
truetruetruefalsefalsetrue
Output for 4.3.0 - 4.4.9
truetruetruetruetruetrue