3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private $b; private $f; public function __constructor($b, $f) { $this->b = $b; $this->f = $f; } } $a1 = new A(12, 'ololo'); $a2 = new A(12, 'ololo'); $a3 = new A(12, 'ololo3'); var_dump($a1 == $a2); var_dump($a1 == $a3);
based on kQmaL
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
bool(true) bool(true)