3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 5000); $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.3.10.0070.01116.43
7.3.00.0080.00816.40
7.2.130.0040.01116.87
7.2.120.0170.01016.69
7.2.110.0060.01216.98
7.2.100.0150.01116.80
7.2.90.0140.00317.05
7.2.80.0110.00016.75
7.2.70.0100.01016.83
7.2.60.0000.01016.65
7.2.50.0160.01016.92
7.2.40.0080.00416.80
7.2.30.0230.00016.80
7.2.20.0000.01416.98
7.2.10.0130.00617.02
7.2.00.0030.01118.23
7.1.250.0030.00915.60
7.1.70.0050.00517.13
7.1.60.0090.01519.46
7.1.50.0000.01816.70
7.1.00.0030.07722.30
7.0.200.0080.00416.62
7.0.140.0030.07722.02
7.0.60.0070.06019.90
7.0.50.0170.04317.87
7.0.40.0000.06320.02
7.0.30.0330.07320.17
7.0.20.0330.07720.04
7.0.10.0070.08720.18
7.0.00.0030.04020.18
5.6.280.0130.06321.06
5.6.210.0070.07720.46
5.6.200.0100.08318.15
5.6.190.0130.04720.39
5.6.180.0230.05320.27
5.6.170.0130.05020.48
5.6.160.0100.08320.49
5.6.150.0100.05718.18
5.6.140.0070.08718.14
5.6.130.0100.03318.14
5.6.120.0030.04720.98
5.6.110.0030.09020.97
5.6.100.0030.04020.97
5.6.90.0200.07020.96
5.6.80.0100.08020.38
5.5.350.4200.04320.43
5.5.340.0030.08318.00
5.5.330.0100.07720.29
5.5.320.0300.07320.17
5.5.310.0330.08020.46
5.5.300.0100.07318.00
5.5.290.0130.07318.02
5.5.280.0000.04720.68
5.5.270.0130.07320.76
5.5.260.0070.07020.86
5.5.250.0100.08020.79
5.5.240.0170.10020.15
5.4.450.2500.03019.46
5.4.440.2500.02719.21
5.4.430.2670.03719.43
5.4.420.2670.04319.54
5.4.410.2370.03718.97
5.4.400.2400.03319.07
5.4.390.2370.03719.12
5.4.380.2370.04319.23
5.4.370.2530.03318.78
5.4.360.2470.04019.13
5.4.350.2400.03318.78
5.4.340.2530.03318.89
5.4.320.2400.03019.08
5.4.310.2430.02719.09
5.4.300.2400.03018.79
5.4.290.2400.03319.23
5.4.280.2600.03719.09
5.4.270.0000.04019.08
5.4.260.0100.04319.23
5.4.250.0000.04019.05
5.4.240.1330.03719.07
5.4.230.2470.03318.77
5.4.220.2570.04319.21
5.4.210.2570.03018.91
5.4.200.2300.04318.88
5.4.190.2270.03719.08
5.4.180.2300.03319.14
5.4.170.2330.03319.12
5.4.160.2230.03719.06
5.4.150.2570.04018.78
5.4.140.2500.04016.34
5.4.130.2530.03016.29
5.4.120.2530.03716.20
5.4.110.2470.04316.08
5.4.100.2430.03716.10
5.4.90.2270.03716.23
5.4.80.2470.03316.39
5.4.70.2370.03716.38
5.4.60.2630.03016.38
5.4.50.2500.03716.41
5.4.40.2470.03316.21
5.4.30.2600.04016.38
5.4.20.2270.03716.48
5.4.10.2470.03316.38
5.4.00.2300.03315.76
5.3.290.2530.04314.70
5.3.280.2430.04014.49
5.3.270.2700.03314.46
5.3.260.2470.03014.61
5.3.250.2170.04014.55
5.3.240.2030.04014.48
5.3.230.2530.04314.66
5.3.220.2530.04314.57
5.3.210.2300.04014.50
5.3.200.2400.04314.54
5.3.190.2430.03314.68
5.3.180.2200.03314.43
5.3.170.2030.03314.44
5.3.160.2130.03714.45
5.3.150.2330.03014.42
5.3.140.2100.04014.43
5.3.130.2230.03314.59
5.3.120.1870.04014.66
5.3.110.0030.03714.66
5.3.100.0030.03314.04
5.3.90.0670.03013.91
5.3.80.1600.03313.89
5.3.70.2270.02313.84
5.3.60.2000.03713.96
5.3.50.2330.03013.99
5.3.40.2300.03713.87
5.3.30.2130.03713.78
5.3.20.1970.03313.50
5.3.10.0300.03313.63
5.3.00.0300.03313.61
5.2.170.0200.03011.63
5.2.160.0200.03711.63
5.2.150.0270.03711.63
5.2.140.0200.03311.63
5.2.130.0300.02711.63
5.2.120.0170.03011.63
5.2.110.0200.02711.63
5.2.100.0230.02311.63
5.2.90.0200.02711.63
5.2.80.0200.02711.63
5.2.70.0270.05711.63
5.2.60.0200.03311.63
5.2.50.0200.03011.63
5.2.40.0270.05311.63
5.2.30.0170.04011.63
5.2.20.0170.03711.63
5.2.10.0230.05711.63
5.2.00.0170.02711.63
5.1.60.0170.02711.63
5.1.50.0170.02311.63
5.1.40.0100.02711.63
5.1.30.0170.02711.63
5.1.20.0070.03011.63
5.1.10.0100.02711.63
5.1.00.0200.02711.63
5.0.50.0130.04311.63
5.0.40.0070.03011.63
5.0.30.0130.06311.63
5.0.20.0130.01711.63
5.0.10.0100.02011.63
5.0.00.0100.06011.63
4.4.90.0030.01711.63
4.4.80.0130.03011.63
4.4.70.0070.02711.63
4.4.60.0070.03711.63
4.4.50.0070.03711.63
4.4.40.0130.04711.63
4.4.30.0070.03011.63
4.4.20.0030.02311.63
4.4.10.0100.02011.63
4.4.00.0100.05311.63
4.3.110.0130.03011.63
4.3.100.0070.02711.63
4.3.90.0070.03711.63
4.3.80.0100.03311.63
4.3.70.0100.01311.63
4.3.60.0130.03311.63
4.3.50.0070.03011.63
4.3.40.0130.04311.63
4.3.30.0070.03711.63
4.3.20.0070.01711.63
4.3.10.0070.02311.63
4.3.00.0030.01711.63

preferences:
38.02 ms | 400 KiB | 5 Q