3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1,2,3,4]; $constructs = ["echo", "print", "isset", "require", "require_once", "include", "include_once"]; foreach($constructs as $construct){ array_map($construct,$array); }

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)
8.5.30.0120.00521.33
8.5.20.0090.00819.55
8.5.10.0110.00716.55
8.5.00.0170.01020.16
8.4.180.0120.00822.01
8.4.170.0120.00924.02
8.4.160.0150.00723.00
8.4.150.0080.00516.86
8.4.140.0120.00917.79
8.4.130.0120.00818.13
8.4.120.0120.00820.55
8.4.110.0120.00918.77
8.4.100.0050.00617.80
8.4.90.0110.00917.69
8.4.80.0040.00519.56
8.4.70.0110.01117.84
8.4.60.0110.00918.57
8.4.50.0120.00519.75
8.4.40.0080.01119.26
8.4.30.0160.00317.73
8.4.20.0060.00320.48
8.4.10.0000.00817.75
8.3.300.0130.01020.55
8.3.290.0100.00920.73
8.3.280.0090.01218.53
8.3.270.0140.00616.74
8.3.260.0130.00616.46
8.3.250.0110.00818.76
8.3.240.0130.00716.61
8.3.230.0140.00516.62
8.3.220.0060.00218.54
8.3.210.0090.00916.66
8.3.200.0100.00316.60
8.3.190.0100.01017.30
8.3.180.0120.00718.36
8.3.170.0040.01118.84
8.3.160.0060.00318.49
8.3.150.0120.00620.60
8.3.140.0060.00920.85
8.3.130.0030.00716.74
8.3.120.0090.00020.82
8.3.110.0060.00620.94
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00317.97
8.3.70.0110.00416.63
8.3.60.0120.00418.45
8.3.50.0130.00718.29
8.3.40.0040.01118.87
8.3.30.0120.00318.71
8.3.20.0030.00519.25
8.3.10.0040.00421.77
8.3.00.0000.00820.49
8.2.300.0090.00818.26
8.2.290.0140.00718.61
8.2.280.0120.00918.31
8.2.270.0130.00717.32
8.2.260.0070.01018.67
8.2.250.0080.00316.64
8.2.240.0050.00517.28
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0090.00016.75
8.2.190.0130.00316.60
8.2.180.0100.00718.56
8.2.170.0070.00722.96
8.2.160.0060.01220.80
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0030.00619.77
8.2.120.0050.00326.35
8.2.110.0040.00422.29
8.2.100.0080.00318.03
8.2.90.0040.00420.43
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0030.00517.93
8.2.50.0040.00417.63
8.2.40.0040.00419.48
8.2.30.0040.00419.55
8.2.20.0100.00018.06
8.2.10.0000.00718.12
8.2.00.0030.00517.88
8.1.340.0110.00817.82
8.1.330.0130.00516.22
8.1.320.0150.00516.33
8.1.310.0050.00316.81
8.1.300.0120.00620.08
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0050.00320.70
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00722.08
8.1.230.0070.00419.01
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0050.00517.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0040.00417.65
8.1.160.0040.00418.93
8.1.150.0000.00718.90
8.1.140.0020.00520.79
8.1.130.0070.00021.93
8.1.120.0020.00517.46
8.1.110.0000.00917.43
8.1.100.0000.00917.32
8.1.90.0040.00417.36
8.1.80.0040.00417.38
8.1.70.0000.00717.36
8.1.60.0000.00817.59
8.1.50.0000.00817.49
8.1.40.0000.00717.44
8.1.30.0040.00417.63
8.1.20.0080.00017.68
8.1.10.0050.00317.54
8.1.00.0070.00017.42
8.0.300.0040.00419.73
8.0.290.0000.00716.75
8.0.280.0000.00718.08
8.0.270.0050.00218.01
8.0.260.0030.00318.46
8.0.250.0000.00617.02
8.0.240.0000.00717.08
8.0.230.0000.00716.94
8.0.220.0000.00716.83
8.0.210.0000.00716.87
8.0.200.0000.00617.00
8.0.190.0040.00417.01
8.0.180.0000.00716.97
8.0.170.0000.00816.95
8.0.160.0030.00316.97
8.0.150.0050.00216.96
8.0.140.0000.00716.95
8.0.130.0080.00013.37
8.0.120.0030.00616.87
8.0.110.0070.00016.77
8.0.100.0070.00016.83
8.0.90.0000.00916.99
8.0.80.0040.01216.96
8.0.70.0040.00416.81
8.0.60.0000.00716.77
8.0.50.0040.00416.91
8.0.30.0080.01017.13
8.0.20.0130.00717.40
8.0.10.0000.00716.90
8.0.00.0200.00416.81
7.4.330.0000.00415.55
7.4.320.0030.00316.39
7.4.300.0020.00516.51
7.4.290.0000.00716.38
7.4.280.0030.00616.61
7.4.270.0070.00316.52
7.4.260.0040.00716.45
7.4.250.0050.00216.44
7.4.240.0040.00416.55
7.4.230.0070.00016.66
7.4.220.0040.00416.47
7.4.210.0050.01016.60
7.4.200.0000.00716.36
7.4.160.0090.00716.48
7.4.140.0100.01017.86
7.4.130.0070.01316.57
7.4.120.0100.00916.49
7.4.110.0130.00616.64
7.4.100.0090.00916.62
7.4.90.0130.01016.44
7.4.80.0120.00619.39
7.4.70.0040.01316.43
7.4.60.0130.00616.68
7.4.50.0030.01316.38
7.4.40.0110.00716.34
7.4.00.0110.00715.01
7.3.330.0000.00513.15
7.3.320.0020.00213.14
7.3.310.0050.00316.14
7.3.300.0000.00716.34
7.3.290.0040.00416.35
7.3.280.0050.01316.34
7.3.260.0100.00916.50
7.3.240.0100.00916.36
7.3.230.0150.00616.67
7.3.210.0060.01016.31
7.3.200.0030.01816.39
7.3.190.0120.00916.33
7.3.180.0060.00916.24
7.3.170.0100.00716.45
7.3.160.0060.00916.34
7.3.10.0080.00616.54
7.3.00.0080.00616.59
7.2.330.0120.00616.52
7.2.320.0150.00616.79
7.2.310.0140.00316.64
7.2.300.0060.01016.45
7.2.290.0110.00816.41
7.2.130.0080.00616.81
7.2.120.0080.00716.66
7.2.110.0120.01016.03
7.2.100.0220.00716.11
7.2.90.0200.00816.11
7.2.80.0250.01016.06
7.2.70.0190.00816.21
7.2.60.0310.00616.21
7.2.50.0210.00416.11
7.2.40.0210.00816.18
7.2.30.0180.00816.21
7.2.20.0170.00916.17
7.2.10.0180.00816.12
7.2.00.0170.00816.15
7.1.250.0060.00415.58
7.1.230.0570.00513.67
7.1.220.0650.00813.64
7.1.210.0540.00613.71
7.1.200.0530.01213.93
7.1.190.0760.01113.80
7.1.180.0440.00613.71
7.1.170.0430.00913.80
7.1.160.0460.00413.91
7.1.150.0540.00713.99
7.1.140.0420.00713.93
7.1.130.0410.00913.83
7.1.120.0380.01013.83
7.1.110.0600.00813.84
7.1.100.0640.00813.93
7.1.90.0590.00413.83
7.1.80.0420.00314.06
7.1.70.0330.00813.94
7.1.60.0680.01431.61
7.1.50.0730.00631.88
7.1.40.0420.00731.89
7.1.30.0530.00331.90
7.1.20.0410.01031.97
7.1.10.0800.00813.88
7.1.00.0570.00113.79
5.6.380.0060.00813.88

preferences:
55.16 ms | 1596 KiB | 5 Q