3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $i=0; while($i < 60000) { $i++; $data[] = substr('../sites/swissquote.eu.fx', strrpos('../sites/swissquote.eu.fx', '/')+1); } $time = microtime(true) - $time; echo 'substr() took ' . number_format($time, 3) . ' seconds and returned ' . count($data) . " entries\n";

preferences:
31.81 ms | 402 KiB | 5 Q