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 * 10); $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.0320.01646.01
7.3.120.0250.02545.77
7.3.110.0320.01646.39
7.3.100.0330.01746.39
7.3.90.0170.02045.88
7.3.80.0170.02346.27
7.3.70.0160.02346.24
7.3.60.0100.02046.25
7.3.50.0210.01046.01
7.3.40.0260.01346.15
7.3.30.0100.03446.13
7.3.20.0090.01848.47
7.3.10.0100.01748.52
7.3.00.0130.01348.09
7.2.250.0410.01046.55
7.2.240.0300.02046.39
7.2.230.0140.02146.36
7.2.220.0260.00346.20
7.2.210.0250.01846.27
7.2.200.0180.01246.45
7.2.190.0170.01746.41
7.2.180.0200.01346.48
7.2.170.0230.01646.49
7.2.160.0260.01046.52
7.2.150.0110.01148.49
7.2.140.0130.01348.67
7.2.130.0110.01448.61
7.2.120.0100.01048.57
7.2.110.0070.01448.85
7.2.100.0040.01848.59
7.2.90.0100.01048.74
7.2.80.0130.01048.84
7.2.70.0030.01748.55
7.2.60.0090.01248.96
7.2.50.0100.01448.73
7.2.40.0090.00948.63
7.2.30.0110.01448.55
7.2.20.0150.00948.79
7.2.10.0120.01248.39
7.2.00.0110.01148.68
7.1.330.0170.00747.79
7.1.320.0060.01247.82
7.1.310.0100.01347.74
7.1.300.0070.01547.59
7.1.290.0040.01847.43
7.1.280.0210.01047.85
7.1.270.0100.01347.75
7.1.260.0100.01047.67
7.1.250.0070.01747.49
7.1.240.0120.00647.38
7.1.230.0170.00747.47
7.1.220.0070.01047.56
7.1.210.0100.00647.47
7.1.200.0160.01347.35
7.1.190.0030.01747.73
7.1.180.0070.01347.86
7.1.170.0070.01647.64
7.1.160.0160.01347.63
7.1.150.0130.01047.75
7.1.140.0030.02447.62
7.1.130.0100.01047.68
7.1.120.0060.01647.60
7.1.110.0060.01647.84
7.1.100.0000.01747.43
7.1.90.0130.00947.78
7.1.80.0150.00447.83
7.1.70.3240.00948.46
7.1.60.0150.01248.41
7.1.50.0050.01348.16
7.1.40.0190.00647.73
7.1.30.0090.00947.80
7.1.20.0160.00747.60
7.1.10.0160.00747.74
7.1.00.0100.02350.94
7.0.330.0070.01047.21
7.0.320.0070.01047.17
7.0.310.0070.01147.43
7.0.300.0210.01047.33
7.0.290.0100.01747.36
7.0.280.0070.01447.19
7.0.270.0130.01047.33
7.0.260.0070.01047.41
7.0.250.0070.01347.26
7.0.240.0060.01347.40
7.0.230.0090.00947.38
7.0.220.0060.01247.41
7.0.210.0060.01247.41
7.0.200.0030.01447.97
7.0.190.0100.01747.51
7.0.180.0170.00747.29
7.0.170.0160.00647.50
7.0.160.0030.02147.13
7.0.150.0140.01447.44
7.0.140.0110.04150.77
7.0.130.0100.01047.21
7.0.120.0160.00647.31
7.0.110.0100.01347.32
7.0.100.0060.01247.41
7.0.90.0060.01247.36
7.0.80.0050.01647.43
7.0.70.0170.00347.07
7.0.60.0110.05649.38
7.0.50.0170.03848.29
7.0.40.0100.03746.58
7.0.30.0350.03146.49
7.0.20.0370.02946.52
7.0.10.0420.04446.62
7.0.00.0090.02946.63
5.6.400.0250.01345.63
5.6.390.0250.01145.72
5.6.380.0140.02445.90
5.6.370.0190.01445.97
5.6.360.0200.01645.78
5.6.350.0330.00345.77
5.6.340.0240.01445.88
5.6.330.0160.01945.92
5.6.320.0160.01945.94
5.6.310.0230.00745.99
5.6.300.0210.01446.03
5.6.290.0160.01945.88
5.6.280.0130.04549.34
5.6.270.0230.01345.79
5.6.260.0340.00345.98
5.6.250.0180.01246.16
5.6.240.0160.01645.86
5.6.230.0240.01445.92
5.6.220.0130.02346.01
5.6.210.0250.02749.03
5.6.200.0120.04147.93
5.6.190.0240.02548.92
5.6.180.4600.03349.06
5.6.170.0540.04548.94
5.6.160.0080.05048.94
5.6.150.0230.03047.86
5.6.140.0180.03547.75
5.6.130.0190.04147.90
5.6.120.0230.02849.23
5.6.110.0250.03849.49
5.6.100.0240.05049.35
5.6.90.0150.03749.24
5.6.80.0200.04549.05
5.6.70.0450.04349.07
5.6.60.0160.01646.03
5.6.50.0280.00746.18
5.6.40.0190.01345.81
5.6.30.0250.01145.95
5.6.20.0230.01045.77
5.6.10.0260.01046.11
5.6.00.0180.01445.89
5.5.380.0220.01246.07
5.5.370.0190.01345.86
5.5.360.0230.01645.80
5.5.350.0340.05748.92
5.5.340.0130.05247.61
5.5.330.0300.03848.96
5.5.320.0430.05248.85
5.5.310.0400.03048.87
5.5.300.0200.04347.78
5.5.290.0200.05147.75
5.5.280.0200.05049.13
5.5.270.0250.04749.16
5.5.260.0160.03149.19
5.5.250.0120.03749.08
5.5.240.0250.05048.96
5.5.230.0160.02945.58
5.5.220.0200.01345.84
5.5.210.0160.01945.76
5.5.200.0200.02046.01
5.5.190.0170.02146.16
5.5.180.0220.00745.64
5.5.170.0220.01645.83
5.5.160.0200.01745.96
5.5.150.0220.01045.88
5.5.140.0250.01345.51
5.5.130.0280.00945.61
5.5.120.0270.02045.85
5.5.110.0350.00645.86
5.5.100.0280.00745.81
5.5.90.0210.01045.97
5.5.80.0160.01946.02
5.5.70.0250.00945.99
5.5.60.0210.02146.09
5.5.50.0290.01646.06
5.5.40.0140.01845.89
5.5.30.0100.02445.43
5.5.20.0170.01746.00
5.5.10.0210.01445.78
5.5.00.0170.01745.64
5.4.450.1260.04046.82
5.4.440.1190.04546.73
5.4.430.1050.04246.72
5.4.420.1130.04346.81
5.4.410.1170.03346.77
5.4.400.0700.04246.31
5.4.390.0680.03846.42
5.4.380.0450.03246.36
5.4.370.0330.03546.39
5.4.360.0200.04446.33
5.4.350.0320.03546.48
5.4.340.0300.03546.25
5.4.330.0230.01342.45
5.4.320.0170.03043.50
5.4.310.0170.03043.30
5.4.300.0170.02743.39
5.4.290.0240.02743.40
5.4.280.0180.03143.29
5.4.270.0240.02543.32
5.4.260.0300.03546.45
5.4.250.0280.03246.56
5.4.240.0240.05046.41
5.4.230.0260.04846.41
5.4.220.0300.03046.39
5.4.210.0220.04546.53
5.4.200.0230.04246.42
5.4.190.0250.03546.35
5.4.180.0270.04346.35
5.4.170.0220.04846.42
5.4.160.0250.03546.27
5.4.150.0290.04046.41
5.4.140.0300.04045.20
5.4.130.0220.04845.11
5.4.120.0260.03845.42
5.4.110.0310.03345.34
5.4.100.0220.03445.32
5.4.90.0200.03345.10
5.4.80.0200.04145.18
5.4.70.0190.04845.14
5.4.60.0250.03845.18
5.4.50.0120.04745.20
5.4.40.0240.04045.31
5.4.30.0280.03645.17
5.4.20.0260.04245.16
5.4.10.0280.04245.31
5.4.00.0210.04345.01
5.3.290.0190.02642.68
5.3.280.0280.03443.33
5.3.270.0240.04643.46
5.3.260.0220.03743.52
5.3.250.0320.02843.47
5.3.240.0300.03543.46
5.3.230.0260.03343.41
5.3.220.0220.03943.36
5.3.210.0260.03043.35
5.3.200.0250.03043.37
5.3.190.0190.03743.51
5.3.180.0280.04143.57
5.3.170.0250.04743.45
5.3.160.0190.03343.49
5.3.150.0210.04743.47
5.3.140.0240.04243.53
5.3.130.0240.03843.43
5.3.120.0250.04243.55
5.3.110.0210.03743.48
5.3.100.0240.03743.21
5.3.90.0220.03243.23
5.3.80.0210.04543.12
5.3.70.0190.03542.95
5.3.60.0290.03343.13
5.3.50.0230.04043.05
5.3.40.0210.04642.97
5.3.30.0210.03543.13
5.3.20.0180.04342.79
5.3.10.0250.03042.87
5.3.00.0290.03842.71
5.2.170.0270.04342.81
5.2.160.0170.05042.70
5.2.150.0200.04742.73
5.2.140.0270.06042.91
5.2.130.0300.03742.70
5.2.120.0270.06342.84
5.2.110.0300.04742.79
5.2.100.0170.05742.84
5.2.90.0330.06042.71
5.2.80.0300.05342.87
5.2.70.0470.05042.77
5.2.60.0330.04342.82
5.2.50.0370.05742.77
5.2.40.0300.04742.72
5.2.30.0270.06742.54
5.2.20.0300.06342.71
5.2.10.0300.05342.67
5.2.00.0130.05310.79
5.1.60.0070.0439.93
5.1.50.0000.04310.01
5.1.40.0130.0279.88
5.1.30.0100.04710.48
5.1.20.0070.05310.28
5.1.10.0130.04010.10
5.1.00.0130.04310.15
5.0.50.0130.0238.77
5.0.40.0100.0278.48
5.0.30.0130.0507.98
5.0.20.0030.0308.16
5.0.10.0070.0278.25
5.0.00.0030.0478.34
4.4.90.0100.0237.25
4.4.80.0070.0277.25
4.4.70.0000.0307.25
4.4.60.0030.0307.25
4.4.50.0030.0207.25
4.4.40.0030.0477.25
4.4.30.0030.0307.25
4.4.20.0000.0307.25
4.4.10.0070.0307.25
4.4.00.0070.0307.25
4.3.110.0030.0307.25
4.3.100.0070.0237.25
4.3.90.0030.0237.25
4.3.80.0030.0437.25
4.3.70.0030.0277.25
4.3.60.0000.0307.25
4.3.50.0000.0337.25
4.3.40.0000.0407.25
4.3.30.0000.0237.25
4.3.20.0130.0237.25
4.3.10.0030.0237.25
4.3.00.0170.0207.27

preferences:
48.21 ms | 400 KiB | 5 Q