<?php class A { protected $x; public function __construct($x) { $this->x = $x; } } $foo = new A(1); $bar = new A(2); $baz = new A(1); var_dump($foo == $bar); var_dump($foo == $baz);
You have javascript disabled. You will not be able to edit any code.