3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((version_compare($installedPhpVersion, '5.4.1', '>=') && 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:
52.79 ms | 402 KiB | 5 Q