3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $cache = []; } function foo() { $t = new stdClass(); $cache[] = $t; $t->foo = $t; $tt = unserialize(serialize($t)); } foo(); gc_collect_cycles();

preferences:
35.49 ms | 402 KiB | 5 Q