3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new stdClass(); $foo2 = new stdClass(); $test = new SplObjectStorage(); $test->attach($foo); $test->attach($foo2); if (in_array($test, $foo)) { array_walk(iterator_to_array($test), function (): void { echo "Hallo\n"; });

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0220.01214.86

preferences:
141.38 ms | 1394 KiB | 7 Q