3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->id = 1; $b = $a; $b->id = 2; var_dump($a->id, $b->id); // int 2 e int 2

preferences:
37.06 ms | 458 KiB | 5 Q