3v4l.org

run code in 300+ PHP versions simultaneously
<?php function quickRandom($length = 16) { $length = intval($length, 10); $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $pool_length = 62; $output = ''; while($length--) { $output .= $pool[rand(0,$pool_length - 1)]; } return $output; } echo (quickRandom(311));

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.64
7.1.70.0000.01017.21
7.1.60.0100.01419.43
7.1.50.0040.01216.95
7.1.00.0000.06322.40
7.0.200.0000.01016.48
7.0.140.0070.09322.04
7.0.60.0100.06720.04
7.0.50.0000.08317.79
7.0.40.0030.04320.30
7.0.30.0600.06320.07
7.0.20.0470.06720.21
7.0.10.0100.04720.15
7.0.00.0070.05020.32
5.6.210.0030.05320.47
5.6.200.0100.06318.22
5.6.190.0030.09020.77
5.6.180.0330.05020.59
5.6.170.0230.05020.45
5.6.160.0100.03720.39
5.6.150.0100.06018.18
5.6.140.0070.04318.18
5.6.130.0030.05718.29
5.6.120.0100.03720.99
5.6.110.0130.06720.99
5.6.100.0030.09020.98
5.6.90.0070.09020.98
5.6.80.0070.06020.45
5.6.70.0270.07020.38
5.5.350.0270.04320.32
5.5.340.0130.08018.07
5.5.330.0070.06720.21
5.5.320.0200.05720.32
5.5.310.0130.05020.40
5.5.300.0100.07317.99
5.5.290.0030.05717.94
5.5.280.0070.04320.73
5.5.270.0070.03720.72
5.5.260.0070.07320.68
5.5.250.0100.07020.55
5.5.240.0100.03720.26
5.4.450.0170.06719.32
5.4.440.0430.04719.27
5.4.430.0230.08019.54
5.4.420.0230.05319.54
5.4.410.0230.03719.44
5.4.400.0300.06719.19
5.4.390.0170.04018.87
5.4.380.0300.07019.09
5.4.370.0230.07318.88
5.4.360.0230.04319.20
5.4.350.0300.07019.20
5.4.340.0230.07719.15
5.4.320.0270.07319.13
5.4.310.0230.07319.24
5.4.300.0130.06719.24
5.4.290.0270.07318.96
5.4.280.0300.07019.14
5.4.270.0100.08719.19
5.4.260.0270.04019.21
5.4.250.0170.07718.94
5.4.240.0130.04019.19
5.4.230.0230.07719.15
5.4.220.0200.03319.20
5.4.210.0230.05318.97
5.4.200.0300.07018.88
5.4.190.0230.07319.14
5.4.180.0200.07019.12
5.4.170.0230.06719.13
5.4.160.0270.07019.11
5.4.150.0200.05018.93
5.4.140.0230.07316.35
5.4.130.0270.07016.28
5.4.120.0200.06016.35
5.4.110.0170.07016.27
5.4.100.0200.04716.45
5.4.90.0200.07316.43
5.4.80.0200.03716.54
5.4.70.0330.03716.35
5.4.60.0130.07316.53
5.4.50.0230.04316.16
5.4.40.0200.07316.39
5.4.30.0200.07716.42
5.4.20.0270.05716.48
5.4.10.0230.05316.32
5.4.00.0130.07016.12
5.3.290.0270.03314.63
5.3.280.0270.03314.60
5.3.270.0330.06314.71
5.3.260.0200.07714.61
5.3.250.0200.03714.66
5.3.240.0230.04714.61
5.3.230.0200.06314.59
5.3.220.0300.06714.65
5.3.210.0270.07014.56
5.3.200.0200.04314.65
5.3.190.0200.06714.43
5.3.180.0200.05014.53
5.3.170.0270.04014.61
5.3.160.0230.04314.58
5.3.150.0170.05014.48
5.3.140.0170.04314.77
5.3.130.0370.06014.52
5.3.120.0300.06314.43
5.3.110.0330.06714.79
5.3.100.0230.07014.05
5.3.90.0230.07014.24
5.3.80.0200.04313.94
5.3.70.0270.06713.95
5.3.60.0200.07013.98
5.3.50.0170.06713.90
5.3.40.0270.03713.91
5.3.30.0300.04313.88
5.3.20.0170.07313.62
5.3.10.0170.06313.67
5.3.00.0270.04013.56
5.2.170.0270.04712.41
5.2.160.0230.05312.41
5.2.150.0230.05012.41
5.2.140.0200.05012.41
5.2.130.0200.04712.41
5.2.120.0170.04312.41
5.2.110.0200.03712.41
5.2.100.0230.03312.41
5.2.90.0270.03312.41
5.2.80.0230.03312.41
5.2.70.0070.06312.41
5.2.60.0230.05312.41
5.2.50.0170.06312.41
5.2.40.0170.05012.41
5.2.30.0170.05312.41
5.2.20.0270.05012.41
5.2.10.0130.04012.41
5.2.00.0130.06312.41
5.1.60.0170.02712.41
5.1.50.0170.02712.41
5.1.40.0170.05012.41
5.1.30.0200.05312.41
5.1.20.0130.04012.41
5.1.10.0130.04012.41
5.1.00.0170.03012.41
5.0.50.0100.04712.41
5.0.40.0170.03312.41
5.0.30.0100.06712.41
5.0.20.0130.03012.41
5.0.10.0130.04012.41
5.0.00.0030.06712.41
4.4.90.0100.03012.41
4.4.80.0100.02012.41
4.4.70.0070.04012.41
4.4.60.0070.03012.41
4.4.50.0130.02312.41
4.4.40.0100.02312.41
4.4.30.0130.03012.41
4.4.20.0030.03012.41
4.4.10.0100.02012.41
4.4.00.0070.05712.41
4.3.110.0100.02712.41
4.3.100.0070.02712.41
4.3.90.0100.03312.41
4.3.80.0030.05012.41
4.3.70.0100.02312.41
4.3.60.0100.03312.41
4.3.50.0100.02712.41
4.3.40.0130.04712.41
4.3.30.0000.02312.41
4.3.20.0030.01712.41
4.3.10.0030.03712.41
4.3.00.0030.02712.41

preferences:
38.6 ms | 400 KiB | 5 Q