3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 20000; $symbols = true; $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $string .= $grabbag[rand(0,$len)]; } echo $string;

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.0100.00316.68
7.3.00.0000.00916.54
7.2.130.0030.01016.80
7.2.120.0040.01517.11
7.2.110.0030.00716.83
7.2.100.0070.01016.68
7.2.90.0030.01017.02
7.2.80.0030.01216.97
7.2.70.0060.00616.58
7.2.60.0110.00416.62
7.2.50.0110.00816.86
7.2.40.0070.01016.95
7.2.30.0040.01117.13
7.2.20.0060.01017.14
7.2.10.0040.01116.74
7.2.00.0020.01418.25
7.1.250.0060.01315.73
7.1.70.0000.01017.10
7.1.60.0110.01819.40
7.1.50.0070.01716.85
7.1.00.0000.05722.48
7.0.200.0000.01116.66
7.0.140.0070.07322.01
7.0.120.0030.07721.96
7.0.60.0100.06319.96
7.0.50.0070.07718.03
7.0.40.0000.09719.96
7.0.30.0230.06320.00
7.0.20.0370.07320.28
7.0.10.0030.09320.33
7.0.00.0100.04720.16
5.6.210.0030.05020.49
5.6.200.0300.04718.19
5.6.190.0070.08720.61
5.6.180.0630.05320.67
5.6.170.0170.05720.50
5.6.160.0200.04020.52
5.6.150.0100.06718.17
5.6.140.0000.05018.21
5.6.130.0130.07318.08
5.6.120.0100.05021.00
5.6.110.0030.09320.95
5.6.100.0130.08721.11
5.6.90.0070.06720.95
5.6.80.0100.04020.39
5.5.350.0000.06020.49
5.5.340.0000.07718.02
5.5.330.0070.04320.37
5.5.320.1970.04720.23
5.5.310.0130.05720.27
5.5.300.0000.06317.91
5.5.290.0070.08718.02
5.5.280.0030.09020.76
5.5.270.0070.09020.88
5.5.260.0100.09020.95
5.5.250.0100.07720.58
5.5.240.0030.08320.25
5.4.450.0770.04019.21
5.4.440.0500.05019.22
5.4.430.0500.05719.22
5.4.420.0530.04719.48
5.4.410.0700.05019.36
5.4.400.0470.04018.76
5.4.390.0530.04718.90
5.4.380.0500.05018.77
5.4.370.0270.04319.25
5.4.360.0600.04719.14
5.4.350.0570.04018.77
5.4.340.0430.04718.89
5.4.320.0800.03319.21
5.4.310.0700.04018.79
5.4.300.0370.05319.12
5.4.290.0600.03719.12
5.4.280.0700.03019.12
5.4.270.0630.04019.07
5.4.260.0300.04719.09
5.4.250.0430.05018.76
5.4.240.0770.05019.03
5.4.230.0470.04718.92
5.4.220.0770.03319.12
5.4.210.0430.04319.05
5.4.200.0330.04719.09
5.4.190.0530.03718.87
5.4.180.0400.04019.22
5.4.170.0630.04019.04
5.4.160.0470.03719.04
5.4.150.0330.04318.77
5.4.140.0800.03316.29
5.4.130.0870.04316.26
5.4.120.0500.04316.44
5.4.110.0700.04716.37
5.4.100.0730.04316.19
5.4.90.0700.04316.45
5.4.80.0600.04716.39
5.4.70.0600.04716.26
5.4.60.0730.03316.41
5.4.50.0500.05016.39
5.4.40.0600.04316.40
5.4.30.0800.03016.45
5.4.20.0830.04016.25
5.4.10.0770.03716.45
5.4.00.0670.03316.02
5.3.290.0430.04316.02
5.3.280.0670.04316.02
5.3.270.0930.03716.02
5.3.260.0400.03316.02
5.3.250.0470.04316.02
5.3.240.0830.03316.02
5.3.230.0530.05016.02
5.3.220.0530.04716.02
5.3.210.0700.04716.02
5.3.200.0770.04716.02
5.3.190.0330.05016.02
5.3.180.1070.04016.02
5.3.170.0800.05016.02
5.3.160.0800.04016.02
5.3.150.0400.02716.02
5.3.140.0730.04016.02
5.3.130.0770.03716.02
5.3.120.0430.05016.02
5.3.110.0870.03716.02
5.3.100.0430.04016.02
5.3.90.0130.04716.02
5.3.80.0470.04016.02
5.3.70.0430.04716.02
5.3.60.0570.04716.02
5.3.50.0870.03716.02
5.3.40.0800.03316.02
5.3.30.0630.04716.02
5.3.20.1170.03316.02
5.3.10.0470.04016.02
5.3.00.0470.04716.02

preferences:
30.04 ms | 401 KiB | 5 Q