3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new stdClass; $bar = new stdClass; $foo->bar = $bar; $bar->foo = $foo; echo json_encode($foo);

preferences:
77.65 ms | 402 KiB | 5 Q