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); $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.2.00.0070.00730.17
7.1.70.0000.00927.71
7.1.60.0170.01028.40
7.1.50.0060.02227.80
7.1.00.0030.03333.11
7.0.200.0030.00927.44
7.0.140.0100.07032.87
7.0.60.0130.08330.63
7.0.50.0030.05328.36
7.0.40.0070.08028.74
7.0.30.0730.08728.74
7.0.20.0500.06028.57
7.0.10.0070.09728.60
7.0.00.0070.04728.59
5.6.280.0000.09731.49
5.6.210.0170.08031.25
5.6.200.0070.08728.62
5.6.190.0070.05730.88
5.6.180.0570.07331.05
5.6.170.0400.07030.95
5.6.160.0100.05330.66
5.6.150.0100.04028.61
5.6.140.0130.07328.69
5.6.130.0100.04728.58
5.6.120.0100.06731.55
5.6.110.0130.06031.57
5.6.100.0130.08031.67
5.6.90.0200.07731.54
5.6.80.0130.06330.84
5.5.350.0170.07031.01
5.5.340.0100.03728.52
5.5.330.0170.07030.72
5.5.320.0000.04330.68
5.5.310.0270.04330.68
5.5.300.0030.09028.49
5.5.290.0200.07028.52
5.5.280.0100.05031.29
5.5.270.0200.05031.35
5.5.260.0170.08331.42
5.5.250.0100.09031.14
5.5.240.0270.07330.82
5.4.450.0770.04730.07
5.4.440.1870.03729.89
5.4.430.1500.03729.57
5.4.420.0370.03729.89
5.4.410.0870.03729.54
5.4.400.1500.03729.35
5.4.390.0430.03729.70
5.4.380.1570.05329.11
5.4.370.1100.05029.02
5.4.360.1670.05729.05
5.4.350.1570.05029.07
5.4.340.1900.06729.19
5.4.320.0110.03423.02
5.4.310.0100.04123.01
5.4.300.0120.04423.02
5.4.290.0070.04223.01
5.4.280.0080.03722.91
5.4.270.0090.03822.91
5.4.260.0100.06029.29
5.4.250.0270.06729.38
5.4.240.0170.07029.29
5.4.230.0300.06329.35
5.4.220.0230.05729.32
5.4.210.0170.06729.20
5.4.200.0200.06729.22
5.4.190.0230.07729.32
5.4.180.0270.05729.45
5.4.170.0300.07029.45
5.4.160.0270.05029.15
5.4.150.0330.06329.39
5.4.140.0200.06326.79
5.4.130.0300.03726.98
5.4.120.0270.07026.77
5.4.110.0200.05326.88
5.4.100.0200.06026.82
5.4.90.0170.07326.83
5.4.80.0200.07726.88
5.4.70.0170.06026.85
5.4.60.0230.06026.89
5.4.50.0300.05026.96
5.4.40.0070.06326.77
5.4.30.0100.06726.95
5.4.20.0200.05026.93
5.4.10.0300.06026.93
5.4.00.0200.06026.45
5.3.290.0080.04222.97
5.3.280.0130.06724.82
5.3.270.0230.07324.59
5.3.260.0270.06724.48
5.3.250.0130.06724.60
5.3.240.0270.05024.52
5.3.230.0100.05724.75
5.3.220.0170.05324.72
5.3.210.0170.05024.61
5.3.200.0070.06024.48
5.3.190.0170.08024.68
5.3.180.0230.06724.56
5.3.170.0170.05724.71
5.3.160.0170.07024.80
5.3.150.0230.04324.39
5.3.140.0200.06724.58
5.3.130.0230.04324.49
5.3.120.0100.05324.54
5.3.110.0270.07324.56
5.3.100.0170.04724.16
5.3.90.0100.05324.18
5.3.80.0170.07024.10
5.3.70.0130.05024.11
5.3.60.0170.05324.09
5.3.50.0200.04723.72
5.3.40.0270.05323.88
5.3.30.0130.05323.88
5.3.20.0170.04723.65
5.3.10.0070.05723.74
5.3.00.0270.05723.82
5.2.170.0170.04021.56
5.2.160.0100.04321.69
5.2.150.0230.04721.61
5.2.140.0100.07021.75
5.2.130.0100.06321.38
5.2.120.0170.04721.65
5.2.110.0200.04321.70
5.2.100.0200.05021.74
5.2.90.0030.05321.71
5.2.80.0070.06721.53
5.2.70.0200.05021.53
5.2.60.0200.04321.50
5.2.50.0100.06021.65
5.2.40.0100.04321.53
5.2.30.0200.03721.51
5.2.20.0100.04721.43
5.2.10.0200.04321.35
5.2.00.0100.05010.79
5.1.60.0000.0409.76
5.1.50.0130.03010.02
5.1.40.0130.0439.94
5.1.30.0100.03710.41
5.1.20.0030.05010.33
5.1.10.0100.0409.97
5.1.00.0100.03710.15
5.0.50.0030.0408.48
5.0.40.0100.0238.49
5.0.30.0130.0408.38
5.0.20.0030.0308.19
5.0.10.0170.0278.16
5.0.00.0000.0538.11
4.4.90.0030.0277.25
4.4.80.0070.0207.25
4.4.70.0070.0277.25
4.4.60.0070.0207.25
4.4.50.0030.0237.25
4.4.40.0070.0437.25
4.4.30.0170.0107.25
4.4.20.0100.0277.25
4.4.10.0070.0277.25
4.4.00.0070.0307.25
4.3.110.0000.0307.25
4.3.100.0000.0277.25
4.3.90.0030.0207.25
4.3.80.0100.0277.25
4.3.70.0070.0237.25
4.3.60.0000.0307.25
4.3.50.0070.0207.25
4.3.40.0000.0337.25
4.3.30.0000.0277.25
4.3.20.0030.0237.25
4.3.10.0030.0307.25
4.3.00.0100.02313.16

preferences:
36.77 ms | 400 KiB | 5 Q