3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sesiune = "4313870916074"; for ($i = 998; $i >= 0; $i--) { echo '-----------------------------'; echo $sesiune; echo '\r\nContent-Disposition: form-data; name="codes['; echo $i; echo '][code]"\r\n\r\n'; echo rand_chars("34789abcde", 6); echo '\r\n'; echo '<br>'; } echo '-----------------------------'; echo $sesiune; echo '\r\nContent-Disposition: form-data; name="submit"\r\n\r\nTrimite\r\n'; echo '-----------------------------'; echo $sesiune; echo '--\r\n'; function rand_chars($c, $l, $u = FALSE) { if (!$u) for ($s = '', $i = 0, $z = strlen($c)-1; $i < $l; $x = rand(0,$z), $s .= $c{$x}, $i++); else for ($i = 0, $z = strlen($c)-1, $s = $c{rand(0,$z)}, $i = 1; $i != $l; $x = rand(0,$z), $s .= $c{$x}, $s = ($s{$i} == $s{$i-1} ? substr($s,0,-1) : $s), $i=strlen($s)); return $s; } ?>

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.00.0320.01219.00
7.1.70.0070.00317.00
7.1.60.0190.01319.46
7.1.50.0000.01617.07
7.0.200.0000.00816.68

preferences:
33.1 ms | 401 KiB | 5 Q