3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { protected $v; public function __construct($v) { $this->v = $v; } } $a1 = new A(new DateTime()); $a2 = new A(new DateTime()); var_dump($a1 == $a2);
based on jluqd
Output for 7.1.0 - 7.2.0
bool(false)
Output for 5.3.21 - 7.0.20
bool(true)