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:
33.39 ms | 404 KiB | 5 Q