<?php function listener(&$event) { $event->mutation = 1; $event = new \DateTimeImmutable(); } $event1 = new stdClass(); $event2 = new stdClass(); listener($event1); $satellite = $event2; listener($satellite); print_r($event1) . "\n"; print_r($event2) . "\n";
You have javascript disabled. You will not be able to edit any code.