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; } echo strlen(quickRandom(315));

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.4.00.0130.00614.98
7.3.120.0060.01215.05
7.3.110.0070.01014.73
7.3.100.0000.01715.05
7.3.90.0070.00714.40
7.3.80.0070.01014.63
7.3.70.0030.01014.79
7.3.60.0090.00014.94
7.3.50.0120.00314.87
7.3.40.0070.00715.03
7.3.30.0070.00714.88
7.3.20.0070.00716.64
7.3.10.0020.00916.73
7.3.00.0060.00516.76
7.2.250.0110.00715.24
7.2.240.0150.00415.14
7.2.230.0060.00615.33
7.2.220.0030.00615.02
7.2.210.0030.01315.14
7.2.200.0120.00014.83
7.2.190.0060.00914.80
7.2.180.0000.01414.98
7.2.170.0030.00615.22
7.2.130.0090.00617.02
7.2.120.0030.01016.70
7.2.110.0030.01016.98
7.2.100.0080.00416.85
7.2.90.0000.00916.95
7.2.80.0030.00617.08
7.2.70.0090.00316.92
7.2.60.0030.00616.75
7.2.50.0030.01017.00
7.2.40.0100.00316.75
7.2.30.0030.00916.89
7.2.20.0060.00616.77
7.2.10.0030.01016.80
7.2.00.0040.00818.16
7.1.330.0080.00315.87
7.1.320.0070.00715.82
7.1.310.0100.00315.71
7.1.300.0090.00315.73
7.1.290.0060.00915.78
7.1.280.0070.00716.00
7.1.270.0070.00715.60
7.1.260.0060.00315.98
7.1.250.0080.00315.52
7.1.100.0030.00918.25
7.1.70.0000.00717.34
7.1.60.0140.01019.43
7.1.50.0180.01834.89
7.1.00.0030.05722.32
7.0.200.0000.00816.64
7.0.140.0100.06322.15
7.0.60.0030.04019.92
7.0.50.0030.08317.89
7.0.40.0130.05020.26
7.0.30.0600.06320.22
7.0.20.0200.08320.10
7.0.10.0270.04320.05
7.0.00.0030.04320.21
5.6.280.0000.07721.10
5.6.210.0030.04020.49
5.6.200.0000.08318.18
5.6.190.0030.04720.41
5.6.180.0500.07720.43
5.6.170.0370.04020.61
5.6.160.0230.04020.48
5.6.150.0100.07718.15
5.6.140.0070.08318.23
5.6.130.0030.04718.22
5.6.120.0030.09321.02
5.6.110.0030.04721.08
5.6.100.0030.06721.09
5.6.90.0070.04721.00
5.6.80.0100.07720.53
5.5.350.0200.08020.42
5.5.340.0100.07717.92
5.5.330.0070.08320.19
5.5.320.0270.07720.25
5.5.310.0300.04320.27
5.5.300.0100.04717.97
5.5.290.0070.04318.08
5.5.280.0070.08020.88
5.5.270.0100.03320.89
5.5.260.0030.07320.84
5.5.250.0100.05720.57
5.5.240.0070.07020.15
5.4.450.0200.06019.44
5.4.440.0130.05719.35
5.4.430.0030.06019.52
5.4.420.0100.05719.57
5.4.410.0170.05719.40
5.4.400.0330.06018.84
5.4.390.0300.07318.69
5.4.380.0130.06318.78
5.4.370.0070.05718.50
5.4.360.0130.05018.45
5.4.350.0070.04512.02
5.4.340.0090.03912.02
5.4.320.0060.03512.50
5.4.310.0040.04412.50
5.4.300.0030.03812.50
5.4.290.0050.03712.50
5.4.280.0030.03712.40
5.4.270.0040.03712.40
5.4.260.0090.03712.40
5.4.250.0030.06718.91
5.4.240.0070.07018.74
5.4.230.0130.04718.65
5.4.220.0070.05718.80
5.4.210.0130.07718.96
5.4.200.0170.05318.79
5.4.190.0170.05718.74
5.4.180.0200.04319.01
5.4.170.0170.05318.98
5.4.160.0130.05718.79
5.4.150.0070.05318.78
5.4.140.0100.04716.53
5.4.130.0100.04316.52
5.4.120.0100.07316.54
5.4.110.0070.05316.45
5.4.100.0070.04716.51
5.4.90.0100.04716.42
5.4.80.0170.03716.52
5.4.70.0000.05316.38
5.4.60.0070.05016.61
5.4.50.0100.04716.30
5.4.40.0170.06316.53
5.4.30.0130.04716.48
5.4.20.0070.05016.38
5.4.10.0100.06316.41
5.4.00.0100.04315.86
5.3.290.0050.03912.80
5.3.280.0230.04314.59
5.3.270.0170.04714.74
5.3.260.0170.07014.69
5.3.250.0030.05314.68
5.3.240.0070.04714.51
5.3.230.0100.05014.60
5.3.220.0070.05314.65
5.3.210.0130.07014.79
5.3.200.0100.04714.47
5.3.190.0100.04714.39
5.3.180.0100.04714.78
5.3.170.0000.05714.62
5.3.160.0230.05014.70
5.3.150.0170.04014.58
5.3.140.0100.06014.77
5.3.130.0030.05714.72
5.3.120.0100.05314.56
5.3.110.0070.05014.68
5.3.100.0130.04313.86
5.3.90.0200.03714.03
5.3.80.0000.05313.84
5.3.70.0130.04314.11
5.3.60.0030.05313.90
5.3.50.0070.05714.11
5.3.40.0100.04314.16
5.3.30.0100.04313.99
5.3.20.0100.04313.86
5.3.10.0130.04313.66
5.3.00.0100.04313.72
5.2.170.0030.04711.22
5.2.160.0070.04011.24
5.2.150.0100.03311.05
5.2.140.0100.05011.21
5.2.130.0070.04311.32
5.2.120.0130.04711.26
5.2.110.0070.03711.00
5.2.100.0000.04311.27
5.2.90.0070.04011.06
5.2.80.0070.04311.25
5.2.70.0200.04311.06
5.2.60.0100.03711.01
5.2.50.0030.04311.11
5.2.40.0030.04310.95
5.2.30.0030.04010.97
5.2.20.0030.04710.96
5.2.10.0100.03310.94
5.2.00.0000.04310.55
5.1.60.0030.03310.05
5.1.50.0070.03310.20
5.1.40.0030.04310.06
5.1.30.0070.04710.57
5.1.20.0070.03710.43
5.1.10.0130.02710.31
5.1.00.0130.0309.90
5.0.50.0070.0338.52
5.0.40.0030.0278.38
5.0.30.0030.0438.29
5.0.20.0070.0378.38
5.0.10.0100.0278.26
5.0.00.0070.0638.38
4.4.90.0070.0177.21
4.4.80.0000.0277.21
4.4.70.0000.0237.21
4.4.60.0000.0307.21
4.4.50.0000.0237.21
4.4.40.0000.0337.21
4.4.30.0070.0277.21
4.4.20.0070.0277.21
4.4.10.0070.0207.21
4.4.00.0030.0337.21
4.3.110.0070.0207.21
4.3.100.0100.0177.21
4.3.90.0000.0277.21
4.3.80.0030.0477.21
4.3.70.0000.0237.21
4.3.60.0000.0237.21
4.3.50.0030.0207.21
4.3.40.0030.0337.21
4.3.30.0170.0307.21
4.3.20.0030.0237.21
4.3.10.0000.0237.21
4.3.00.0030.0236.98

preferences:
46.74 ms | 400 KiB | 5 Q