3v4l.org

run code in 300+ PHP versions simultaneously
<?php $installedPhpVersion = phpversion(); var_dump(version_compare($installedPhpVersion, '5.4.1', '>=')); var_dump(version_compare($installedPhpVersion, '5.4.0', '<')); $limit = 1000; $objects = new SplObjectStorage; for($i = 0; $i < $limit; $i++){ $object = new StdClass; if(isset($objects[$object])){ die("this should never happen, but did after $i iteration"); } $objects[$object] = 1; } echo 'ok'; ?>

preferences:
33.36 ms | 402 KiB | 5 Q