3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ddd = str_repeat('a', 1024 * 1024 * 2 - memory_get_usage()); echo memory_get_usage(), "\n"; $pass = str_repeat('a', 1024 * 1024 * 9 + 1024 * 1000); $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.3.10.2540.01045.84
7.3.00.2190.02346.43
7.2.130.1080.00748.43
7.2.120.1240.02048.45
7.2.110.0460.02247.95
7.2.100.0890.01447.98
7.2.90.4930.00748.86
7.2.80.2070.02048.71
7.2.70.2250.02848.52
7.2.60.0940.01646.54
7.2.50.0700.01648.23
7.2.40.3690.01348.56
7.2.30.0610.02348.57
7.2.20.3460.00548.38
7.2.10.0530.01748.78
7.2.00.1660.01749.81
7.1.250.0680.01247.18
7.1.70.0140.01448.82
7.1.60.0140.02449.01
7.1.50.0160.02349.03
7.1.00.0030.04054.03
7.0.200.0130.01348.56
7.0.140.0070.08053.94
7.0.60.0170.04351.30
7.0.50.0230.06349.23
7.0.40.0270.07749.71
7.0.30.0770.09049.85
7.0.20.0570.05349.88
7.0.10.0830.06749.73
7.0.00.0230.03749.84
5.6.280.0100.07752.68
5.6.210.0200.08752.31
5.6.200.0170.04349.78
5.6.190.0130.04752.07
5.6.180.9970.05351.98
5.6.170.0870.08352.00
5.6.160.0200.05751.80
5.6.150.0330.07749.86
5.6.140.0270.06049.78
5.6.130.0170.04049.78
5.6.120.0170.05352.70
5.6.110.0230.04752.84
5.6.100.0200.09352.71
5.6.90.0200.09352.80
5.6.80.0100.09352.07
5.6.70.0670.08352.20
5.5.350.0570.08352.10
5.5.340.0230.06749.62
5.5.330.0170.04351.65
5.5.320.0800.07351.78
5.5.310.0730.07751.75
5.5.300.0070.04749.66
5.5.290.0170.07049.61
5.5.280.0230.05052.34
5.5.270.0230.10052.35
5.5.260.0100.05752.36
5.5.250.0170.04352.16
5.5.240.0300.07751.86
5.4.450.1070.07750.99
5.4.440.2630.06051.08
5.4.430.2600.05751.06
5.4.420.2370.06050.98
5.4.410.0570.06750.93
5.4.400.1030.05750.42
5.4.390.1000.07050.39
5.4.380.0770.05750.36
5.4.370.0570.04350.32
5.4.360.0470.05350.40
5.4.350.0470.05050.27
5.4.340.0500.05050.22
5.4.320.0140.04544.15
5.4.310.0160.03944.16
5.4.300.0210.04544.16
5.4.290.0160.04444.15
5.4.280.0120.03944.05
5.4.270.0120.04144.05
5.4.260.0230.08350.39
5.4.250.0170.08350.56
5.4.240.0200.06050.43
5.4.230.0200.09350.59
5.4.220.0400.06750.23
5.4.210.0270.05750.27
5.4.200.0130.09350.36
5.4.190.0270.09050.46
5.4.180.0300.06050.50
5.4.170.0300.07750.48
5.4.160.0230.06050.42
5.4.150.0270.07750.51
5.4.140.0300.06748.00
5.4.130.0270.05347.98
5.4.120.0200.08348.10
5.4.110.0200.05748.02
5.4.100.0270.06748.10
5.4.90.0330.05348.13
5.4.80.0370.06747.91
5.4.70.0230.07747.95
5.4.60.0130.07047.94
5.4.50.0270.07047.91
5.4.40.0230.05047.94
5.4.30.0330.04748.13
5.4.20.0300.05748.11
5.4.10.0230.08047.99
5.4.00.0300.06747.59
5.3.290.0110.04443.86
5.3.280.0170.07045.31
5.3.270.0330.05745.63
5.3.260.0170.06345.50
5.3.250.0330.06045.63
5.3.240.0330.04745.63
5.3.230.0430.04345.62
5.3.220.0100.09345.59
5.3.210.0100.07045.61
5.3.200.0300.04345.50
5.3.190.0330.05745.70
5.3.180.0270.06045.45
5.3.170.0130.06745.69
5.3.160.0370.05045.36
5.3.150.0200.06045.61
5.3.140.0270.04745.57
5.3.130.0230.07345.35
5.3.120.0200.07745.45
5.3.110.0130.07045.56
5.3.100.0330.05744.91
5.3.90.0200.05744.89
5.3.80.0300.07045.07
5.3.70.0370.06044.99
5.3.60.0470.05344.83
5.3.50.0370.06745.01
5.3.40.0230.07744.74
5.3.30.0330.05044.70
5.3.20.0270.06044.76
5.3.10.0330.06344.63
5.3.00.0230.06044.47
5.2.170.0270.05742.66
5.2.160.0200.05342.57
5.2.150.0300.04042.46
5.2.140.0170.05342.56
5.2.130.0130.06042.50
5.2.120.0330.05742.59
5.2.110.0300.06042.62
5.2.100.0400.04342.42
5.2.90.0070.06042.42
5.2.80.0230.06342.50
5.2.70.0300.06042.61
5.2.60.0330.05342.52
5.2.50.0230.05742.43
5.2.40.0200.06342.50
5.2.30.0200.04742.31
5.2.20.0270.05742.43
5.2.10.0200.05342.27
5.2.00.0070.05010.55
5.1.60.0100.03710.02
5.1.50.0170.03310.22
5.1.40.0030.05010.04
5.1.30.0100.04710.40
5.1.20.0070.04710.18
5.1.10.0030.03710.21
5.1.00.0130.04310.21
5.0.50.0030.0408.56
5.0.40.0030.0338.44
5.0.30.0100.0408.13
5.0.20.0030.0378.23
5.0.10.0070.0378.23
5.0.00.0070.0508.21
4.4.90.0070.0277.25
4.4.80.0030.0307.25
4.4.70.0100.0207.25
4.4.60.0070.0207.25
4.4.50.0000.0277.25
4.4.40.0130.0377.25
4.4.30.0100.0207.25
4.4.20.0070.0237.25
4.4.10.0030.0237.25
4.4.00.0100.0337.25
4.3.110.0000.0307.25
4.3.100.0170.0177.25
4.3.90.0000.0237.25
4.3.80.0100.0377.25
4.3.70.0100.0177.25
4.3.60.0100.0237.25
4.3.50.0030.0237.25
4.3.40.0100.0277.25
4.3.30.0070.0277.25
4.3.20.0000.0307.25
4.3.10.0030.0307.25
4.3.00.0100.0237.26

preferences:
35.49 ms | 401 KiB | 5 Q