3v4l.org

run code in 300+ PHP versions simultaneously
<?phpclass C{ public $p; public function &__get($n) { return $this->p; }}$first = new C;$first->p = 'init';$clone = clone $first;$clone->p = $first->magic . '-x';$clone = clone $first;$clone->p = $clone->p . '-x';$clone->p = $clone->p . '-x';$clone->p = $clone->p . '-x';echo $first->v . "\n";

This is an error 404

There are `0` results


preferences:
144.37 ms | 1399 KiB | 7 Q