3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $a; protected $b; private $c; } class B extends A {} $a = new A; $b = new B; $a->a = 1; $b->a = 2; var_dump($a == $b); var_dump($a === $b);
based on TVN7v
Output for 5.3.20 - 7.2.0
bool(false) bool(false)