3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($t) { $t->yyy = 'vvv'; return true; } $t = new StdClass; $t->xxx = 'hello'; a($t); var_dump($t);

preferences:
40.28 ms | 402 KiB | 5 Q