<?php declare(strict_types=1); // objects are held by handle: both names point at one instance $a = new stdClass(); $a->count = 0; $b = $a; $b->count = 5; echo $a->count, "\n";
assignment copies the handle, not the object