3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $p; } $a = new A; $b = $a; debug_zval_dump($a, $b); var_dump($a === $b); // bool(true) $b->p = 1; debug_zval_dump($a, $b); var_dump($a === $b); // bool(false)

preferences:
20.88 ms | 405 KiB | 5 Q