3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(0); $max = 32; $length = 2; $time_start = getmicrotime(); $charset=sprintf('%s', implode('',array_merge(range('0', '9'))));//,range('A', 'Z')))).'~`!@#$%^&*()-_\/\'";:,.+=<>? '; while ($length < $max + 1) { $time_check = getmicrotime(); $time = $time_check - $time_start; printf("Checking passwords with length: %s\nRuntime: %s seconds\n", $length, $time); for ($i = 0;$i < strlen($charset);$i++) $a[] = $charset{$i}; for ($i = 0, $c = "", $d = "chk(";$i < $length;$i++) { $c.= "foreach(\$a as \$b[$i])"; $d.= "\$b[$i]."; } echo($c . $d . "\"\");"); $length++; } function chk($e){ printf("%s\r", $e); } function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } ?>

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.3.10.0000.01116.58
7.3.00.0100.00316.80
7.2.130.0000.01716.79
7.2.120.0100.00716.79
7.2.110.0040.01116.94
7.2.100.0030.01016.83
7.2.90.0000.01016.75
7.2.80.0090.00616.50
7.2.70.0030.01216.60
7.2.60.0100.00316.45
7.2.50.0060.00916.72
7.2.40.0080.00416.82
7.2.30.0030.00616.82
7.2.20.0090.00316.94
7.2.10.0000.01016.93
7.2.00.0030.01017.87
7.1.250.0110.00415.96
7.1.70.0000.01016.94
7.1.60.0110.01119.32
7.1.50.0030.01416.70
7.1.00.0070.07322.43
7.0.200.0000.00916.88
7.0.140.0030.07722.18
7.0.70.4330.04019.97
7.0.60.0200.06720.04
7.0.50.0070.05317.82
7.0.40.0230.07020.25
7.0.30.0230.05720.34
7.0.20.0300.07320.15
7.0.10.0200.04020.34
7.0.00.0030.04720.05
5.6.280.0030.07020.89
5.6.210.0100.05320.77
5.6.200.0130.07318.29
5.6.190.0100.05320.57
5.6.180.0170.04320.75
5.6.170.0330.04320.55
5.6.160.0070.08320.46
5.6.150.0030.06318.26
5.6.140.0070.03718.28
5.6.130.0070.08718.28
5.6.120.0030.08721.08
5.6.110.0170.08321.06
5.6.100.0070.08321.12
5.6.90.0130.06721.04
5.6.80.0200.06720.43
5.6.70.0300.07320.41
5.5.350.0030.07320.45
5.5.340.0070.04718.00
5.5.330.0000.06720.40
5.5.320.0000.04720.41
5.5.310.0270.03720.36
5.5.300.0130.07318.08
5.5.290.0100.07317.99
5.5.280.0070.04321.01
5.5.270.0030.08020.88
5.5.260.0130.08320.77
5.5.250.0030.08720.62
5.5.240.0000.07320.19
5.4.450.0170.04019.55
5.4.440.0300.06319.29
5.4.430.0200.07319.27
5.4.420.0170.05019.63
5.4.410.0300.07019.33
5.4.400.3800.03019.07
5.4.390.3470.04019.00
5.4.380.0270.06019.09
5.4.370.0170.04019.00
5.4.360.0270.05719.35
5.4.350.0230.07719.22
5.4.340.0270.07019.24
5.4.320.0230.07319.09
5.4.310.0400.07719.24
5.4.300.0200.03319.15
5.4.290.0170.03319.24
5.4.280.0600.04019.09
5.4.270.0470.06019.07
5.4.260.0270.06319.26
5.4.250.0300.07019.14
5.4.240.0130.04718.83
5.4.230.0270.06319.21
5.4.220.0300.07319.13
5.4.210.0300.07019.31
5.4.200.0300.06019.30
5.4.190.0300.04019.17
5.4.180.0270.07019.14
5.4.170.0230.04018.83
5.4.160.0300.07019.11
5.4.150.4430.04319.22
5.4.140.3570.02716.43
5.4.130.3600.04016.69
5.4.120.0430.03316.41
5.4.110.0030.04316.61
5.4.100.0130.04716.21
5.4.90.0270.04016.61
5.4.80.0100.06716.55
5.4.70.0000.04316.59
5.4.60.0000.07316.30
5.4.50.0070.06716.57
5.4.40.0070.05716.55
5.4.30.0070.04016.53
5.4.20.0300.05716.42
5.4.10.0230.03716.48
5.4.00.3500.03015.89

preferences:
36.11 ms | 401 KiB | 5 Q