3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ddd = str_repeat('a', 1024 * 1024 * 2 - memory_get_usage()); $pass = str_repeat('a', 1024 * 1024 * 9 + 1024 * 800); $pass . $pass; __halt_compiler();

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.0230.02745.55
7.3.120.0270.02345.74
7.3.110.0270.02345.60
7.3.100.0210.02445.49
7.3.90.0240.00745.70
7.3.80.0230.01345.67
7.3.70.0140.01445.48
7.3.60.0230.01045.78
7.3.50.0290.01045.35
7.3.40.0220.01445.47
7.3.30.0200.01745.72
7.3.20.0140.00947.86
7.3.10.0320.00647.86
7.3.00.0290.00648.00
7.2.250.0240.02445.75
7.2.240.0230.02945.70
7.2.230.0170.01745.72
7.2.220.0280.01345.47
7.2.210.0270.00945.91
7.2.200.0120.01845.50
7.2.190.0180.01845.97
7.2.180.0070.03145.94
7.2.170.0160.01646.03
7.1.330.0160.00947.21
7.1.320.0190.01047.02
7.1.310.0320.00347.12
7.1.300.0140.01446.89
7.1.290.0120.01646.88
7.1.280.0610.01446.89
7.1.270.0130.01646.76
7.1.260.0080.02146.94
7.1.70.3870.01648.24
7.1.60.0240.01448.34
7.1.50.0140.02448.07
7.1.00.0070.03753.68
7.0.200.0240.00748.23
7.0.140.0130.07353.23
7.0.60.0100.06050.91
7.0.50.0100.04348.72
7.0.40.0200.06748.79
7.0.30.0600.06748.87
7.0.20.0630.09349.00
7.0.10.0570.08749.16
7.0.00.0170.07749.02
5.6.280.0130.07351.87
5.6.210.0200.03351.47
5.6.200.0200.09349.10
5.6.190.0300.07751.09
5.6.180.0730.06751.28
5.6.170.1000.07751.19
5.6.160.0170.07751.29
5.6.150.0230.08049.00
5.6.140.0330.05749.06
5.6.130.0170.06349.01
5.6.120.0130.07351.82
5.6.110.0200.08751.94
5.6.100.0230.08751.89
5.6.90.0200.05052.04
5.6.80.0270.07051.31
5.6.71.1430.04351.45
5.5.350.0700.08351.45
5.5.340.0130.04748.80
5.5.330.0170.06751.05
5.5.320.0700.08351.12
5.5.310.0370.05351.12
5.5.300.0170.06748.91
5.5.290.0170.09348.88
5.5.280.0130.06351.58
5.5.270.0170.05051.68
5.5.260.0270.05351.68
5.5.250.0270.02751.51
5.5.240.0700.07751.42
5.4.450.2530.07050.48
5.4.440.1100.07750.28
5.4.430.0970.05750.00
5.4.420.2070.06050.27
5.4.410.2570.05350.14
5.4.400.0930.05749.37
5.4.390.0900.05049.55
5.4.380.0730.04749.59
5.4.370.0500.05349.60
5.4.360.0470.05349.37
5.4.350.0470.05749.63
5.4.340.0500.05049.55
5.4.320.0130.05043.38
5.4.310.0170.04143.38
5.4.300.0140.04843.38
5.4.290.0150.04443.38
5.4.280.0140.03843.28
5.4.270.0200.04543.28
5.4.260.0330.04749.74
5.4.250.0200.05749.79
5.4.240.0200.09349.77
5.4.230.0130.06349.56
5.4.220.0300.05349.56
5.4.210.0230.05349.80
5.4.200.0300.07049.61
5.4.190.0330.07749.53
5.4.180.0230.06349.52
5.4.170.0400.04049.76
5.4.160.0230.06049.79
5.4.150.0270.05749.72
5.4.140.0070.07747.20
5.4.130.0330.07347.31
5.4.120.0230.08047.36
5.4.110.0130.06747.11
5.4.100.0200.05747.27
5.4.90.0200.06047.26
5.4.80.0230.05347.29
5.4.70.0300.04347.33
5.4.60.0370.05747.32
5.4.50.0270.07047.32
5.4.40.0230.07347.13
5.4.30.0200.05347.29
5.4.20.0300.05347.23
5.4.10.0170.06047.32
5.4.00.0200.06046.66
5.3.290.0130.04643.34
5.3.280.0230.07345.11
5.3.270.0170.07345.13
5.3.260.0170.07044.98
5.3.250.0270.06345.21
5.3.240.0370.07044.89
5.3.230.0230.06045.11
5.3.220.0130.09045.08
5.3.210.0230.06344.92
5.3.200.0300.06345.10
5.3.190.0100.09045.04
5.3.180.0370.06745.17
5.3.170.0300.07045.06
5.3.160.0170.05744.85
5.3.150.0300.05044.94
5.3.140.0230.05745.16
5.3.130.0230.05044.91
5.3.120.0370.06344.91
5.3.110.0230.05345.08
5.3.100.0270.06044.55
5.3.90.0170.06344.53
5.3.80.0270.04344.46
5.3.70.0170.05744.15
5.3.60.0230.05044.44
5.3.50.0270.06744.39
5.3.40.0270.05744.46
5.3.30.0270.05344.19
5.3.20.0300.06743.83
5.3.10.0170.06044.08
5.3.00.0170.06343.95
5.2.170.0200.04342.03
5.2.160.0300.06041.95
5.2.150.0230.06741.96
5.2.140.0200.06342.05
5.2.130.0130.06341.91
5.2.120.0270.06041.99
5.2.110.0230.05041.93
5.2.100.0230.06041.76
5.2.90.0330.05041.99
5.2.80.0200.06742.05
5.2.70.0230.05741.93
5.2.60.0300.06341.86
5.2.50.0270.04742.00
5.2.40.0230.04741.91
5.2.30.0300.04341.88
5.2.20.0200.06041.95
5.2.10.0270.04341.72
5.2.00.0200.03710.89
5.1.60.0100.0409.88
5.1.50.0000.05710.14
5.1.40.0100.0439.86
5.1.30.0000.04310.41
5.1.20.0070.03710.28
5.1.10.0000.05310.03
5.1.00.0200.03010.11
5.0.50.0000.0338.39
5.0.40.0030.0408.43
5.0.30.0100.0478.13
5.0.20.0030.0378.10
5.0.10.0000.0438.13
5.0.00.0100.0377.99
4.4.90.0070.0207.29
4.4.80.0070.0277.29
4.4.70.0070.0277.29
4.4.60.0030.0237.29
4.4.50.0100.0207.29
4.4.40.0030.0477.29
4.4.30.0000.0307.29
4.4.20.0070.0177.29
4.4.10.0070.0277.29
4.4.00.0100.0377.29
4.3.110.0070.0277.29
4.3.100.0000.0337.29
4.3.90.0000.0237.29
4.3.80.0030.0337.29
4.3.70.0000.0337.29
4.3.60.0030.0307.29
4.3.50.0030.0207.29
4.3.40.0100.0337.29
4.3.30.0070.0277.29
4.3.20.0000.0277.29
4.3.10.0030.0277.29
4.3.00.0100.0237.26

preferences:
36.3 ms | 401 KiB | 5 Q