<?php class Point { public function __construct(public int $x, public int $y) {} } $p1 = new Point(1, 2); $p2 = new Point(1, 2); var_dump($p1 == $p2); var_dump($p1 === $p2);
You have javascript disabled. You will not be able to edit any code.