<?php $a = new \stdClass(); $a->rec = $a; print_r($a); var_dump($a); $a = new class() { public function __toString(): string { static $c = 0; if ($c++ > 1) { throw new \Exception('ex'); } return '1'; } }; echo $a, $a, $a;
You have javascript disabled. You will not be able to edit any code.