3v4l.org

run code in 300+ PHP versions simultaneously
<?php function quickRandom($length = 16) { $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $str = substr(str_shuffle(str_repeat($pool, 5)), 0, $length); if ($length > 310) { return $str . quickRandom($length - 310); } return $str; }

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.0060.00919.35
7.1.100.0030.01017.77
7.1.70.0040.00416.68
7.1.60.0030.02119.43
7.1.50.0190.01134.82
7.1.00.0000.06022.32
7.0.200.0000.00816.57
7.0.140.0070.07322.21
7.0.70.4900.04019.89
7.0.60.0070.04719.93
7.0.50.0070.04717.83
7.0.40.0100.06020.10
7.0.30.0430.04020.24
7.0.20.0430.06720.06
7.0.10.0270.05320.24
7.0.00.0130.07020.20
5.6.280.0070.07021.15
5.6.210.0070.06020.50
5.6.200.0170.07718.16
5.6.190.0100.06320.42
5.6.180.0130.04720.65
5.6.170.0300.06320.50
5.6.160.0030.06020.56
5.6.150.0070.08718.22
5.6.140.0030.07318.14
5.6.130.0070.06718.18
5.6.120.0070.04321.13
5.6.110.0170.07721.01
5.6.100.0100.06021.02
5.6.90.0100.03720.93
5.6.80.0030.04320.40
5.6.70.0130.04320.41
5.5.350.0030.05320.50
5.5.340.0030.08317.95
5.5.330.0100.08320.19
5.5.320.0000.09020.19
5.5.310.0300.05720.34
5.5.300.0000.04017.94
5.5.290.0000.04317.99
5.5.280.0030.07020.81
5.5.270.0030.04020.76
5.5.260.0070.08720.88
5.5.250.0070.08720.62
5.5.240.0100.04320.29
5.4.450.0670.06019.57
5.4.440.0730.06719.61
5.4.430.0800.06019.54
5.4.420.0170.06319.62
5.4.410.0730.05719.42
5.4.400.0670.06019.13
5.4.390.0830.05319.26
5.4.380.0100.05718.50
5.4.370.0400.03718.77
5.4.360.0430.04018.72
5.4.350.0090.03412.02
5.4.340.0060.03712.02
5.4.320.0100.04212.50
5.4.310.0090.04212.50
5.4.300.0090.04712.51
5.4.290.0090.04012.50
5.4.280.0090.03412.40
5.4.270.0060.04312.39
5.4.260.0040.03812.40
5.4.250.0070.05318.95
5.4.240.0070.05318.98
5.4.230.0170.04718.60
5.4.220.0030.07318.63
5.4.210.0100.04719.00
5.4.200.0030.05718.60
5.4.190.0070.06718.95
5.4.180.0230.04018.75
5.4.170.0100.05318.73
5.4.160.0000.05718.91
5.4.150.0100.07018.94
5.4.140.0170.05716.40
5.4.130.0130.05316.36
5.4.120.0070.04716.40
5.4.110.0070.05716.38
5.4.100.0070.05316.49
5.4.90.0070.06016.49
5.4.80.0030.05316.54
5.4.70.0030.05316.39
5.4.60.0170.04316.50
5.4.50.0000.05316.48
5.4.40.0070.04716.44
5.4.30.0070.04716.47
5.4.20.0030.05016.45
5.4.10.0030.05016.46
5.4.00.0070.04715.71
5.3.290.0030.04212.80
5.3.280.0070.05314.68
5.3.270.0070.05314.62
5.3.260.0200.04014.58
5.3.250.0100.04714.77
5.3.240.0170.04014.76
5.3.230.0000.05714.66
5.3.220.0100.05014.74
5.3.210.0030.05714.56
5.3.200.0100.04714.72
5.3.190.0130.05014.70
5.3.180.0030.05314.64
5.3.170.0270.04714.61
5.3.160.0100.04314.56
5.3.150.0000.05714.69
5.3.140.0070.05014.65
5.3.130.0070.05014.70
5.3.120.0130.04314.62
5.3.110.0030.05714.56
5.3.100.0070.05014.05
5.3.90.0070.04713.92
5.3.80.0070.04714.00
5.3.70.0130.04014.00
5.3.60.0030.05013.98
5.3.50.0000.05313.77
5.3.40.0100.04713.95
5.3.30.0000.05313.98
5.3.20.0030.05013.75
5.3.10.0070.04713.71
5.3.00.0030.05013.56
5.2.170.0000.04311.13
5.2.160.0030.04011.30
5.2.150.0000.04711.12
5.2.140.0070.03711.31
5.2.130.0030.04011.08
5.2.120.0070.04311.08
5.2.110.0100.03311.17
5.2.100.0100.03711.18
5.2.90.0070.03711.16
5.2.80.0030.04311.26
5.2.70.0100.05011.18
5.2.60.0070.04011.04
5.2.50.0030.04311.18
5.2.40.0130.03011.08
5.2.30.0000.04311.07
5.2.20.0070.03710.86
5.2.10.0030.03710.95
5.2.00.0000.05310.94
5.1.60.0070.0309.97
5.1.50.0100.0309.96
5.1.40.0030.04010.13
5.1.30.0070.04710.28
5.1.20.0030.03710.30
5.1.10.0070.03010.16
5.1.00.0100.02710.13
5.0.50.0030.0378.69
5.0.40.0100.0378.36
5.0.30.0030.0438.18
5.0.20.0070.0238.26
5.0.10.0000.0308.19
5.0.00.0030.0408.39
4.4.90.0030.0207.86
4.4.80.0000.0237.86
4.4.70.0030.0207.86
4.4.60.0030.0207.86
4.4.50.0000.0237.86
4.4.40.0000.0377.86
4.4.30.0030.0207.86
4.4.20.0030.0237.86
4.4.10.0030.0207.86
4.4.00.0030.0377.86
4.3.110.0070.0207.86
4.3.100.0030.0207.86
4.3.90.0030.0207.86
4.3.80.0000.0407.86
4.3.70.0000.0237.86
4.3.60.0030.0177.86
4.3.50.0070.0177.86
4.3.40.0030.0337.86
4.3.30.0000.0237.86
4.3.20.0030.0237.86
4.3.10.0030.0207.86
4.3.00.0100.0207.26

preferences:
36.04 ms | 400 KiB | 5 Q