3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test1() { $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a / 2; } return microtime(true) - $s; } function test2() { $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a / 2; } return microtime(true) - $s; } echo test1()."\n"; echo test2()."\n";

preferences:
32.86 ms | 402 KiB | 5 Q