3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{} $as = array_pad([], 100000, new a()); function b(){}foreach($as as $a){b($a);}

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.3.70.0100.01017.74
8.3.60.0070.01417.88
8.3.50.0150.01222.98
8.3.40.0130.00720.04
8.3.30.0190.00920.42
8.3.20.0070.00421.89
8.3.10.0080.00322.27
8.3.00.0030.00721.29
8.2.180.0030.01620.40
8.2.170.0130.00622.96
8.2.160.0040.01522.02
8.2.150.0030.00724.18
8.2.140.0070.00424.66
8.2.130.0030.00726.16
8.2.120.0100.00023.13
8.2.110.0100.00324.30
8.2.100.0040.01119.22
8.2.90.0030.00720.63
8.2.80.0050.00519.13
8.2.70.0040.00819.00
8.2.60.0000.01119.43
8.2.50.0060.00619.00
8.2.40.0040.00819.45
8.2.30.0080.00320.82
8.2.20.0000.01118.99
8.2.10.0030.00719.39
8.2.00.0110.00018.91
8.1.280.0170.00725.92
8.1.270.0080.00425.24
8.1.260.0040.00726.35
8.1.250.0060.00628.09
8.1.240.0000.01327.88
8.1.230.0100.00622.14
8.1.220.0060.00620.64
8.1.210.0000.01120.54
8.1.200.0100.00320.22
8.1.190.0080.00420.13
8.1.180.0030.00920.41
8.1.170.0090.00621.44
8.1.160.0060.00625.01
8.1.150.0040.00721.70
8.1.140.0060.00620.36
8.1.130.0070.00320.84
8.1.120.0040.00720.26
8.1.110.0080.00320.17
8.1.100.0000.01120.27
8.1.90.0080.00420.21
8.1.80.0080.00320.17
8.1.70.0040.00720.14
8.1.60.0110.00420.30
8.1.50.0070.00720.29
8.1.40.0080.00520.25
8.1.30.0060.00620.36
8.1.20.0030.01020.35
8.1.10.0080.00520.24
8.1.00.0000.01220.26
8.0.300.0030.01020.15
8.0.290.0050.00519.50
8.0.280.0000.01221.00
8.0.270.0030.00719.93
8.0.260.0040.00719.94
8.0.250.0080.00319.66
8.0.240.0060.00619.66
8.0.230.0040.00719.48
8.0.220.0080.00319.43
8.0.210.0040.00719.50
8.0.200.0050.00519.63
8.0.190.0070.00719.41
8.0.180.0000.01219.55
8.0.170.0070.00719.55
8.0.160.0030.00919.43
8.0.150.0040.00819.49
8.0.140.0060.00619.46
8.0.130.0030.00916.02
8.0.120.0060.00619.40
8.0.110.0060.00919.50
8.0.100.0030.00919.37
8.0.90.0030.00919.32
8.0.80.0060.02419.50
8.0.70.0030.01019.36
8.0.60.0030.00919.52
8.0.50.0030.00919.52
8.0.30.0140.01619.41
8.0.20.0100.01819.58
8.0.10.0030.00919.45
8.0.00.0160.01419.46
7.4.330.0000.00919.00
7.4.320.0040.01219.13
7.4.300.0070.00319.11
7.4.290.0060.00618.93
7.4.280.0000.01218.93
7.4.270.0060.00619.13
7.4.260.0030.00919.14
7.4.250.0060.00619.02
7.4.240.0050.00719.07
7.4.230.0080.00419.14
7.4.220.0150.01219.13
7.4.210.0130.01019.20
7.4.200.0060.00619.17
7.4.160.0120.01519.26
7.4.150.0140.01219.11
7.4.140.0130.01419.15
7.4.130.0130.01019.04
7.4.120.0150.01419.13
7.4.110.0100.01418.92
7.4.100.0160.00919.20
7.4.90.0070.01919.05
7.4.80.0100.01419.39
7.4.70.0040.02419.09
7.4.60.0090.01519.06
7.4.50.0000.01519.14
7.4.40.0100.01418.95
7.4.30.0030.02019.05
7.4.00.0070.01917.42
7.3.330.0070.00315.93
7.3.320.0040.00715.89
7.3.310.0040.00818.93
7.3.300.0000.01218.89
7.3.290.0110.01118.86
7.3.280.0120.01318.90
7.3.270.0130.01318.90
7.3.260.0120.01219.05
7.3.250.0130.01919.00
7.3.240.0190.01619.02
7.3.230.0150.00919.19
7.3.210.0040.02319.17
7.3.200.0080.01619.39
7.3.190.0130.01219.23
7.3.180.0100.01318.97
7.3.170.0030.02119.00
7.3.160.0060.01719.01
7.3.120.0100.01717.56
7.3.110.0080.01217.44
7.3.100.0060.01817.55
7.3.90.0070.01517.09
7.3.80.0090.01217.18
7.3.70.0070.01517.44
7.3.60.0060.00917.42
7.3.50.0070.01417.48
7.3.40.0090.00617.26
7.3.30.0070.01317.40
7.3.20.0070.01020.45
7.3.10.0070.01020.49
7.3.00.0030.01720.29
7.2.330.0120.01219.03
7.2.320.0160.01618.92
7.2.310.0190.00619.09
7.2.300.0070.02019.15
7.2.290.0100.01419.32
7.2.250.0090.01517.35
7.2.240.0140.01417.54
7.2.230.0130.01317.31
7.2.220.0060.00917.77
7.2.210.0070.01717.52
7.2.200.0030.02017.44
7.2.190.0090.01217.70
7.2.180.0130.01017.66
7.2.170.0170.00717.58
7.2.00.0040.01523.04
7.1.330.0060.01619.58
7.1.320.0090.01519.51
7.1.310.0070.02119.55
7.1.300.0030.02119.54
7.1.290.0030.02119.62
7.1.280.0070.02019.62
7.1.270.0070.01719.70
7.1.260.0000.02319.51
7.1.200.0100.01019.59
7.1.100.0060.00622.01
7.1.70.0030.01221.04
7.1.60.0030.01421.19
7.1.50.0070.02820.53
7.1.00.0030.08326.32
7.0.200.0080.01217.51
7.0.140.0000.08325.99
7.0.60.0070.04322.74
7.0.50.0100.04720.61
7.0.40.0030.04722.73
7.0.30.0700.06722.71
7.0.20.0300.08722.71
7.0.10.0100.08022.64
7.0.00.0070.04322.80
5.6.280.0070.09730.32
5.6.210.0100.05029.75
5.6.200.0130.06327.46
5.6.190.0100.09029.43
5.6.180.0430.08029.68
5.6.170.0300.10329.70
5.6.160.0070.07329.70
5.6.150.0130.07327.46
5.6.140.0100.10027.38
5.6.130.0130.05327.38
5.6.120.0000.11030.06
5.6.110.0230.09030.30
5.6.100.0230.09330.34
5.6.90.0200.08030.30
5.6.80.0230.08729.81
5.5.350.0300.09330.54
5.5.340.0070.07728.05
5.5.330.0100.10330.20
5.5.320.0300.05030.21
5.5.310.0170.05330.18
5.5.300.0170.09728.00
5.5.290.0070.10028.00
5.5.280.0030.06030.82
5.5.270.0000.06330.68
5.5.260.0330.08030.70
5.5.250.0200.08030.60
5.5.240.0100.04330.32
5.4.450.0200.05029.38
5.4.440.0500.06029.53
5.4.430.0600.06029.13
5.4.420.0430.07029.13
5.4.410.1070.06029.39
5.4.400.0170.04029.20
5.4.390.0370.06028.93
5.4.380.0300.07328.57
5.4.370.0170.09328.58
5.4.360.0330.07328.77
5.4.350.0400.07028.76
5.4.340.0400.07328.54
5.4.320.0100.05222.55
5.4.310.0110.05322.55
5.4.300.0060.05522.55
5.4.290.0120.05022.55
5.4.280.0110.04922.45
5.4.270.0100.05522.45
5.4.260.0090.05622.45
5.4.250.0090.05222.45
5.4.240.0110.04822.45
5.4.230.0100.05322.43
5.4.220.0050.05822.44
5.4.210.0140.05222.43
5.4.200.0100.05922.44
5.4.190.0080.05722.44
5.4.180.0110.04922.43
5.4.170.0090.05122.44
5.4.160.0060.05722.43
5.4.150.0090.05322.43
5.4.140.0090.05122.11
5.4.130.0090.05522.10
5.4.120.0120.04622.06
5.4.110.0090.05522.06
5.4.100.0110.04922.06
5.4.90.0100.06122.06
5.4.80.0130.04722.06
5.4.70.0050.05422.05
5.4.60.0100.04922.06
5.4.50.0120.04622.05
5.4.40.0120.05722.04
5.4.30.0090.05222.04
5.4.20.0070.05122.04
5.4.10.0160.04222.04
5.4.00.0080.05421.53
5.3.290.0070.04412.80
5.3.280.0070.03612.70
5.3.270.0060.03912.72
5.3.260.0100.03812.72
5.3.250.0060.03712.72
5.3.240.0100.03512.72
5.3.230.0090.03612.71
5.3.220.0030.04212.68
5.3.210.0070.03912.68
5.3.200.0060.04012.68
5.3.190.0070.04212.68
5.3.180.0060.04112.68
5.3.170.0060.03612.67
5.3.160.0080.03612.67
5.3.150.0090.03412.67
5.3.140.0070.03612.66
5.3.130.0070.03812.66
5.3.120.0070.04012.66
5.3.110.0070.03712.66
5.3.100.0070.04212.12
5.3.90.0060.04412.10
5.3.80.0070.04712.09
5.3.70.0040.05112.09
5.3.60.0100.04612.08
5.3.50.0090.04712.02
5.3.40.0060.03712.02
5.3.30.0050.03711.98
5.3.20.0110.04411.76
5.3.10.0050.04011.73
5.3.00.0090.04011.71
5.2.170.0040.0349.21
5.2.160.0070.0419.21
5.2.150.0060.0359.21
5.2.140.0060.0289.21
5.2.130.0050.0299.17
5.2.120.0060.0279.18
5.2.110.0040.0309.18
5.2.100.0050.0319.18
5.2.90.0050.0289.17
5.2.80.0090.0259.17
5.2.70.0040.0309.17
5.2.60.0030.0319.13
5.2.50.0040.0299.09
5.2.40.0060.0279.07
5.2.30.0070.0279.04
5.2.20.0080.0259.04
5.2.10.0040.0358.94
5.2.00.0040.0308.80
5.1.60.0040.0238.08
5.1.50.0030.0258.08
5.1.40.0030.0258.06
5.1.30.0060.0248.41
5.1.20.0050.0258.43
5.1.10.0040.0278.16
5.1.00.0030.0278.16
5.0.50.0020.0246.63
5.0.40.0030.0216.50
5.0.30.0040.0326.31
5.0.20.0030.0266.28
5.0.10.0020.0226.25
5.0.00.0050.0296.25
4.4.90.0030.0174.78
4.4.80.0040.0144.75
4.4.70.0040.0154.75
4.4.60.0020.0164.75
4.4.50.0000.0214.77
4.4.40.0050.0234.70
4.4.30.0030.0154.76
4.4.20.0070.0164.85
4.4.10.0040.0174.85
4.4.00.0020.0264.76
4.3.110.0080.0184.67
4.3.100.0040.0134.67
4.3.90.0040.0204.63
4.3.80.0040.0314.58
4.3.70.0050.0194.63
4.3.60.0040.0134.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0030.0153.30
4.3.20.0040.0143.28
4.3.10.0010.0173.23
4.3.00.0000.01713.95

preferences:
46.63 ms | 401 KiB | 5 Q