3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 500000000); $y = 'bar'; $before = microtime(1); $x = $x . $y; var_dump(microtime(1) - $before);

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.0070.00719.02
7.1.70.0000.01116.90
7.1.60.0090.01519.46
7.1.50.0120.01216.83
7.1.00.0030.07722.46
7.0.200.0080.00416.57
7.0.140.0070.07022.01
7.0.100.0070.06719.98
7.0.90.0030.05719.99
7.0.80.0070.07319.86
7.0.70.0170.05319.84
7.0.60.0070.08320.05
7.0.50.0170.07320.30
7.0.40.0070.06320.05
7.0.30.0100.08320.11
7.0.20.0130.07719.96
7.0.10.0070.04019.95
7.0.00.0070.06020.02
5.6.280.0070.07020.89
5.6.250.0070.08020.62
5.6.240.0130.07320.68
5.6.230.0100.08020.61
5.6.220.0100.04320.57
5.6.210.0070.08020.63
5.6.200.0100.05020.96
5.6.190.0000.08721.03
5.6.180.0100.03320.93
5.6.170.0100.07021.00
5.6.160.0070.04021.13
5.6.150.0100.06721.02
5.6.140.0100.08020.95
5.6.130.0070.07321.00
5.6.120.0100.03721.01
5.6.110.0070.04321.07
5.6.100.0030.04721.01
5.6.90.0100.07021.05
5.6.80.0030.05720.55
5.6.70.0100.06720.33
5.6.60.0130.06720.40
5.6.50.0130.08020.34
5.6.40.0030.04020.35
5.6.30.0070.08020.39
5.6.20.0030.04720.37
5.6.10.0100.05020.39
5.6.00.0030.05020.32
5.5.380.0200.07020.41
5.5.370.0100.06020.37
5.5.360.0070.05320.33
5.5.350.0000.05720.32
5.5.340.0030.08020.75
5.5.330.0070.04720.91
5.5.320.0100.07320.76
5.5.310.0100.08720.79
5.5.300.0030.04320.63
5.5.290.0130.07720.85
5.5.280.0030.08020.91
5.5.270.0070.04320.75
5.5.260.0170.06320.73
5.5.250.0170.07320.72
5.5.240.0030.04020.30
5.5.230.0030.07320.27
5.5.220.0070.07320.16
5.5.210.0100.07320.09
5.5.200.0070.07020.15
5.5.190.0130.05320.12
5.5.180.0130.03320.10
5.5.160.0130.06020.25
5.5.150.0100.04320.23
5.5.140.0070.06320.17
5.5.130.0030.04720.13
5.5.120.0030.05320.21
5.5.110.0070.08319.96
5.5.100.0070.08019.94
5.5.90.0030.04720.09
5.5.80.0130.07020.06
5.5.70.0100.03320.05
5.5.60.0030.04720.04
5.5.50.0200.06320.07
5.5.40.0070.06720.09
5.5.30.0170.07020.04
5.5.20.0100.08020.04
5.5.10.0000.07720.07
5.5.00.0130.07720.03
5.4.450.0100.04719.43
5.4.440.0070.08019.44
5.4.430.0100.06719.39
5.4.420.0100.03319.38
5.4.410.0100.03319.25
5.4.400.0070.06319.12
5.4.390.0070.07719.08
5.4.380.0130.05718.95
5.4.370.0100.07319.03
5.4.360.0030.05019.23
5.4.350.0100.03718.99
5.4.340.0130.07019.03
5.4.320.0030.07719.05
5.4.310.0130.06718.94
5.4.300.0100.06719.25
5.4.290.0030.05019.12
5.4.280.0070.06018.94
5.4.270.0030.06719.12
5.4.260.0200.04018.96
5.4.250.0100.05719.12
5.4.240.0100.05719.11
5.4.230.0130.04319.02
5.4.220.0100.06318.97
5.4.210.0070.04019.03
5.4.200.0130.05019.13
5.4.190.0100.04718.97
5.4.180.0000.05318.80
5.4.170.0130.06719.10
5.4.160.0100.07319.02
5.4.150.0000.05718.92
5.4.140.0100.08316.28
5.4.130.0130.03316.26
5.4.120.0030.05716.28
5.4.110.0100.04016.21
5.4.100.0100.06716.31
5.4.90.0130.06316.43
5.4.80.0130.06016.31
5.4.70.0070.06316.43
5.4.60.0100.06716.24
5.4.50.0070.07016.23
5.4.40.0130.03016.23
5.4.30.0070.04016.35
5.4.20.0000.08016.19
5.4.10.0100.07016.29
5.4.00.0000.08015.71
5.3.290.0030.05714.67
5.3.280.0070.07314.45
5.3.270.0200.07014.43
5.3.260.0100.07314.61
5.3.250.0100.06014.56
5.3.240.0100.06714.61
5.3.230.0100.03314.54
5.3.220.0030.05014.55
5.3.210.0000.04014.47
5.3.200.0030.04014.57
5.3.190.0100.03014.52
5.3.180.0130.06314.54
5.3.170.0070.06014.55
5.3.160.0030.03714.42
5.3.150.0130.06014.55
5.3.140.0030.04014.51
5.3.130.0070.07014.53
5.3.120.0170.06714.50
5.3.110.0100.05314.52
5.3.100.0000.04713.98
5.3.90.0070.07014.02
5.3.80.0000.07314.01
5.3.70.0030.04713.88
5.3.60.0000.04313.95
5.3.50.0030.04313.89
5.3.40.0070.06313.94
5.3.30.0070.05713.81
5.3.20.0030.03313.63
5.3.10.0030.07713.43
5.3.00.0130.04313.49
5.2.170.0030.05310.93
5.2.160.0030.05011.13
5.2.150.0130.05311.10
5.2.140.0030.06311.13
5.2.130.0070.04710.94
5.2.120.0100.05711.17
5.2.110.0000.03011.17
5.2.100.0000.04310.89
5.2.90.0030.03311.05
5.2.80.0100.04711.07
5.2.70.0000.03011.05
5.2.60.0070.06311.06
5.2.50.0000.03710.84
5.2.40.0030.05011.01
5.2.30.0000.06311.00
5.2.20.0030.05710.84
5.2.10.0070.03010.77
5.2.00.0070.05710.63
5.1.60.7830.6771276.31
5.1.50.5500.6171080.42
5.1.40.5200.6331056.49
5.1.30.5570.5931061.19
5.1.20.5670.5331044.23
5.1.10.5700.513911.63
5.1.00.6070.5631016.68
5.0.50.6370.510968.64
5.0.40.5900.6101013.43
5.0.30.5770.537976.03
5.0.20.8600.7131458.93
5.0.10.6630.7131258.45
5.0.01.1470.7171714.04
4.4.91.0470.6831811.53
4.4.80.7400.5971260.88
4.4.70.6570.6971285.66
4.4.60.7370.6371217.89
4.4.50.7970.6971370.89
4.4.40.8400.6731455.30
4.4.30.6330.4731052.63
4.4.20.5470.5171013.50
4.4.10.4700.540847.13
4.4.00.5330.543933.41
4.3.110.7800.7001315.75
4.3.100.6670.6101146.67
4.3.90.7900.6401372.22
4.3.81.2270.8302140.54
4.3.70.8530.7531476.08
4.3.61.1570.7901946.44
4.3.50.8400.8371503.86
4.3.41.0270.8271851.29
4.3.31.2630.7771836.28
4.3.21.0170.7901718.89
4.3.11.1570.6701719.44
4.3.01.3300.7571908.18

preferences:
34.82 ms | 401 KiB | 5 Q