3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 38; $c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890-_'; for ($x=0; $x<$n; $x++) { $c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890'; if (($x<$n) && ($x > 0) && ($s < 2)) { $c .= '-_'; } $r .= substr($c, mt_rand(0, strlen($c) - 1), 1); if (($r == '_') || ($r == '-')) { $s++; } } echo $r;

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.0080.01114.87
7.3.120.0060.01114.90
7.3.110.0070.01114.93
7.3.100.0040.00914.95
7.3.90.0050.00914.69
7.3.80.0020.01515.00
7.3.70.0060.00714.74
7.3.60.0090.00614.79
7.3.50.0080.00614.80
7.3.40.0020.01214.75
7.3.30.0070.00914.77
7.3.20.0060.00616.74
7.3.10.0080.00716.55
7.3.00.0070.00716.53
7.2.250.0060.01214.68
7.2.240.0080.00914.85
7.2.230.0040.01014.98
7.2.220.0070.00814.79
7.2.210.0050.01015.06
7.2.200.0100.00615.05
7.2.190.0030.00914.96
7.2.180.0080.00615.07
7.2.170.0050.00915.00
7.2.160.0060.00915.05
7.2.150.0040.00717.07
7.2.140.0040.01117.00
7.2.130.0030.01216.89
7.2.120.0090.00516.58
7.2.110.0050.00816.84
7.2.100.0050.01016.60
7.2.90.0110.00516.81
7.2.80.0060.00816.90
7.2.70.0100.00717.08
7.2.60.0100.00716.79
7.2.50.0060.00816.87
7.2.40.0110.00616.81
7.2.30.0070.01016.75
7.2.20.0080.00816.81
7.2.10.0040.00916.91
7.2.00.0080.00817.54
7.1.330.0040.00915.66
7.1.320.0050.01115.78
7.1.310.0050.00715.89
7.1.300.0060.00815.79
7.1.290.0070.00615.65
7.1.280.0070.00715.78
7.1.270.0040.01115.74
7.1.260.0050.00515.62
7.1.250.0040.00815.59
7.1.70.0000.00716.91
7.1.60.0100.01419.40
7.1.50.0070.01717.00
7.1.00.0070.07322.40
7.0.200.0070.00316.70
7.0.140.0070.07022.04
7.0.60.0100.06319.91
7.0.50.0130.07017.88
7.0.40.0070.04020.04
7.0.30.0270.03320.13
7.0.20.0370.07320.20
7.0.10.0230.05320.21
7.0.00.0100.03320.09
5.6.280.0000.07720.87
5.6.210.0130.07320.72
5.6.200.0070.08718.22
5.6.190.0030.07720.56
5.6.180.4070.04020.60
5.6.170.0330.04020.49
5.6.160.0100.05320.50
5.6.150.0030.04718.07
5.6.140.0030.04718.21
5.6.130.0070.08018.18
5.6.120.0170.07021.04
5.6.110.0130.06020.98
5.6.100.0100.08020.98
5.6.90.0130.07321.10
5.6.80.0070.05020.52
5.6.70.0230.03720.50
5.5.350.0170.07720.43
5.5.340.0070.08317.95
5.5.330.0000.05320.46
5.5.320.0230.04320.13
5.5.310.0270.06720.29
5.5.300.0030.04317.98
5.5.290.0070.08317.95
5.5.280.0170.06720.87
5.5.270.0030.05320.64
5.5.260.0270.05020.86
5.5.250.0070.05320.69
5.5.240.0070.07020.24
5.4.450.0270.06719.41
5.4.440.0230.04319.41
5.4.430.0200.03719.20
5.4.420.0130.04719.20
5.4.410.0070.05019.43
5.4.400.0170.03318.79
5.4.390.0230.04019.23
5.4.380.0130.03719.09
5.4.370.0330.02719.25
5.4.360.0100.05319.13
5.4.350.0170.03318.90
5.4.340.0270.04019.09
5.4.320.0200.04018.88
5.4.310.0200.05719.06
5.4.300.0130.04318.90
5.4.290.0300.04318.89
5.4.280.0230.07718.80
5.4.270.0330.06019.04
5.4.260.0330.07019.04
5.4.250.0270.04719.21
5.4.240.0300.05318.94
5.4.230.0200.04719.15
5.4.220.0230.04719.15
5.4.210.0300.05018.88
5.4.200.0400.06019.13
5.4.190.0230.06018.91
5.4.180.0230.07319.05
5.4.170.0300.04019.04
5.4.160.0230.05319.11
5.4.150.0230.07319.06
5.4.140.0200.07716.54
5.4.130.0230.05016.18
5.4.120.0270.06716.54
5.4.110.0270.06016.06
5.4.100.0270.07016.08
5.4.90.0230.06716.42
5.4.80.0230.04016.37
5.4.70.0330.04016.44
5.4.60.0400.05716.41
5.4.50.0230.07016.36
5.4.40.0300.06316.39
5.4.30.0370.06016.43
5.4.20.0200.05316.04
5.4.10.0270.07316.41
5.4.00.0270.06315.71
5.3.290.0300.06714.61
5.3.280.0200.04014.64
5.3.270.0230.06314.45
5.3.260.0270.05714.65
5.3.250.0330.05014.46
5.3.240.0230.07714.49
5.3.230.0330.06714.62
5.3.220.0270.07014.65
5.3.210.0400.06014.50
5.3.200.0330.06014.39
5.3.190.0270.07314.48
5.3.180.0300.06314.65
5.3.170.0300.05314.41
5.3.160.0200.07714.38
5.3.150.0270.07014.59
5.3.140.0400.06314.55
5.3.130.0270.07014.38
5.3.120.0270.07314.49
5.3.110.0300.06714.45
5.3.100.0300.06714.01
5.3.90.0130.06713.97
5.3.80.0200.04714.04
5.3.70.0400.04713.86
5.3.60.0270.05314.09
5.3.50.0270.07313.79
5.3.40.0270.06713.88
5.3.30.0200.06713.94
5.3.20.0170.05013.73
5.3.10.0270.04713.73
5.3.00.0230.05313.73
5.2.170.0200.05313.73
5.2.160.0230.05713.73
5.2.150.0230.06013.73
5.2.140.0130.04313.73
5.2.130.0230.03713.73
5.2.120.0300.05013.73
5.2.110.0130.06013.73
5.2.100.0130.03313.73
5.2.90.0100.03313.73
5.2.80.0230.02713.73
5.2.70.0230.05313.73
5.2.60.0370.03313.73
5.2.50.0200.05713.73
5.2.40.0200.04713.73
5.2.30.0170.03713.73
5.2.20.0130.03013.73
5.2.10.0170.05013.73
5.2.00.0170.05713.73
5.1.60.0200.05013.73
5.1.50.0170.05013.73
5.1.40.0170.03313.73
5.1.30.0130.04313.73
5.1.20.0200.05313.73
5.1.10.0130.04013.73
5.1.00.0100.03013.73
5.0.50.0100.03713.73
5.0.40.0100.04313.73
5.0.30.0100.05713.73
5.0.20.0200.03313.73
5.0.10.0100.04713.73
5.0.00.0030.05313.73
4.4.90.0100.02313.73
4.4.80.0070.02313.73
4.4.70.0100.03713.73
4.4.60.0130.02313.73
4.4.50.0100.02013.73
4.4.40.0100.05713.73
4.4.30.0100.02313.73
4.4.20.0030.02013.73
4.4.10.0070.03013.73
4.4.00.0070.04713.73
4.3.110.0130.03013.73
4.3.100.0070.03713.73
4.3.90.0070.04013.73
4.3.80.0170.04313.73
4.3.70.0070.03713.73
4.3.60.0130.02013.73
4.3.50.0030.02313.73
4.3.40.0100.04713.73
4.3.30.0000.04013.73
4.3.20.0130.02313.73
4.3.10.0030.03313.73
4.3.00.0000.03313.73

preferences:
34.03 ms | 401 KiB | 5 Q