3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = new SplObjectStorage; $obj = new StdClass; $os->attach($obj); var_dump($os->count()); var_dump($os->detach($obj), $os->count()); var_dump($os->detach($obj), $os->count());

preferences:
34.49 ms | 402 KiB | 5 Q