3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Container { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } } class Clazz { private $containers; public function __construct(array $containers) { $this->containers = $containers; } } $containers = array(); for ($i = 0; $i < 10000; $i++) { $containers['a' . $i] = new Container('a' . $i, 'b' . $i); } $clazz = new Clazz($containers);

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.60.0150.01220.41
8.3.50.0130.00723.11
8.3.40.0220.00620.83
8.3.30.0190.01021.01
8.3.20.0080.00321.08
8.3.10.0030.00623.03
8.3.00.0070.00324.25
8.2.180.0130.00718.88
8.2.170.0130.00622.96
8.2.160.0130.00622.72
8.2.150.0100.00024.18
8.2.140.0040.00724.66
8.2.130.0050.00526.16
8.2.120.0030.00623.08
8.2.110.0070.00722.89
8.2.100.0100.00720.09
8.2.90.0040.00821.57
8.2.80.0000.01119.88
8.2.70.0090.00619.75
8.2.60.0080.00420.30
8.2.50.0040.00820.00
8.2.40.0040.00720.59
8.2.30.0030.00723.24
8.2.20.0040.00720.12
8.2.10.0030.00920.21
8.2.00.0100.00320.20
8.1.280.0070.01725.92
8.1.270.0030.00724.51
8.1.260.0030.00626.35
8.1.250.0030.00628.09
8.1.240.0060.00624.84
8.1.230.0030.01223.39
8.1.220.0000.01220.25
8.1.210.0000.01121.38
8.1.200.0060.00619.85
8.1.190.0000.01120.11
8.1.180.0040.00720.02
8.1.170.0040.00821.09
8.1.160.0030.00821.39
8.1.150.0000.01120.95
8.1.140.0090.00319.84
8.1.130.0000.01020.35
8.1.120.0040.00919.95
8.1.110.0030.00919.77
8.1.100.0080.00419.93
8.1.90.0000.01119.96
8.1.80.0030.00719.91
8.1.70.0030.00719.84
8.1.60.0000.01319.99
8.1.50.0000.01119.89
8.1.40.0030.01020.03
8.1.30.0000.01120.11
8.1.20.0030.01020.17
8.1.10.0000.01119.96
8.1.00.0120.00619.88
8.0.300.0000.01121.98
8.0.290.0040.00719.29
8.0.280.0050.00520.62
8.0.270.0040.01019.47
8.0.260.0080.00419.08
8.0.250.0090.00319.07
8.0.240.0090.00619.15
8.0.230.0040.00719.12
8.0.220.0060.00618.98
8.0.210.0030.00719.09
8.0.200.0100.00019.09
8.0.190.0040.00719.20
8.0.180.0030.00919.09
8.0.170.0040.00719.20
8.0.160.0090.00319.15
8.0.150.0000.01219.18
8.0.140.0040.00819.15
8.0.130.0090.00415.67
8.0.120.0090.00319.04
8.0.110.0000.01119.17
8.0.100.0040.00719.11
8.0.90.0040.00718.93
8.0.80.0100.01419.09
8.0.70.0000.01118.96
8.0.60.0000.01119.08
8.0.50.0070.00618.91
8.0.30.0110.02019.33
8.0.20.0140.02119.55
8.0.10.0080.00419.23
8.0.00.0090.01719.12
7.4.330.0080.00016.66
7.4.320.0100.00318.64
7.4.300.0000.01018.79
7.4.290.0080.00318.74
7.4.280.0040.00718.61
7.4.270.0070.00418.65
7.4.260.0030.00715.57
7.4.250.0070.00718.70
7.4.240.0030.00918.77
7.4.230.0040.00718.65
7.4.220.0120.01218.68
7.4.210.0090.01518.77
7.4.200.0040.00718.65
7.4.190.0050.00518.89
7.4.160.0130.01018.74
7.4.150.0120.01218.66
7.4.140.0110.01918.88
7.4.130.0100.01418.81
7.4.120.0080.01618.79
7.4.110.0090.01618.79
7.4.100.0150.00918.65
7.4.90.0090.02118.73
7.4.80.0090.01619.39
7.4.70.0200.01218.69
7.4.60.0340.03418.64
7.4.50.0060.00618.57
7.4.40.0070.01622.52
7.4.30.0130.01318.69
7.4.10.0110.01816.98
7.4.00.0070.01417.09
7.3.330.0070.00315.52
7.3.320.0030.00615.52
7.3.310.0000.01118.62
7.3.300.0060.00618.57
7.3.290.0100.01018.60
7.3.280.0100.01618.59
7.3.270.0180.00618.62
7.3.260.0180.01618.82
7.3.250.0150.01518.74
7.3.240.0100.01418.89
7.3.230.0230.01018.91
7.3.210.0130.01318.77
7.3.200.0160.01719.39
7.3.190.0120.02318.65
7.3.180.0060.01718.57
7.3.170.0090.01518.79
7.3.160.0100.01318.66
7.3.130.0060.01817.20
7.3.120.0030.01917.07
7.3.110.0140.01017.23
7.3.100.0000.01817.31
7.3.90.0060.01617.19
7.3.80.0040.01416.84
7.3.70.0000.02216.87
7.3.60.0060.01516.89
7.3.50.0000.01517.05
7.3.40.0090.01617.24
7.3.30.0030.02217.13
7.3.20.0040.01218.64
7.3.10.0100.01018.65
7.3.00.0070.01418.86
7.2.330.0160.01019.07
7.2.320.0060.02818.73
7.2.310.0140.02118.97
7.2.300.0180.00919.21
7.2.290.0070.01819.06
7.2.260.0150.01217.58
7.2.250.0030.02317.32
7.2.240.0030.01717.54
7.2.230.0000.02117.65
7.2.220.0150.00617.38
7.2.210.0140.00917.41
7.2.200.0100.01017.29
7.2.190.0100.01017.38
7.2.180.0070.01717.32
7.2.170.0190.00617.36
7.2.160.0090.01117.29
7.2.150.0030.01618.70
7.2.140.0130.00919.05
7.2.130.0040.01818.93
7.2.120.0000.01519.03
7.2.110.0050.01519.03
7.2.100.0130.00719.07
7.2.90.0120.00618.82
7.2.80.0060.01218.79
7.2.70.0030.01718.93
7.2.60.0040.01419.13
7.2.50.0030.01719.11
7.2.40.0030.01618.97
7.2.30.0030.01019.09
7.2.20.0000.02319.02
7.2.10.0000.02019.07
7.2.00.0080.01420.13
7.1.330.0060.01617.96
7.1.320.0000.02018.03
7.1.310.0040.01618.01
7.1.300.0060.01617.92
7.1.290.0000.02117.94
7.1.280.0090.01217.79
7.1.270.0000.02117.80
7.1.260.0030.01918.14
7.1.250.0030.01617.98
7.1.240.0110.00817.95
7.1.230.0070.01418.03
7.1.220.0080.00817.86
7.1.210.0070.01018.00
7.1.200.0070.02317.66
7.1.190.0100.01018.03
7.1.180.0090.00918.05
7.1.170.0070.01417.94
7.1.160.0070.01317.91
7.1.150.0060.01217.92
7.1.140.0000.02117.94
7.1.130.0030.01617.96
7.1.120.0120.00617.93
7.1.110.0070.01717.73
7.1.100.0380.01918.38
7.1.90.0100.00718.02
7.1.80.0070.01117.88
7.1.70.0100.00918.63
7.1.60.0080.01918.68
7.1.50.0030.02318.48
7.1.40.0060.01518.12
7.1.30.0070.01317.89
7.1.20.0000.01917.91
7.1.10.0070.01117.98
7.1.00.0020.02821.11
7.0.330.0070.01417.53
7.0.320.0060.00917.74
7.0.310.0060.02317.68
7.0.300.0000.02217.77
7.0.290.0040.01217.81
7.0.280.0100.00717.44
7.0.270.0030.01617.67
7.0.260.0000.01517.62
7.0.250.0040.01817.70
7.0.240.0090.01217.73
7.0.230.0000.01917.60
7.0.220.0030.01617.63
7.0.210.0030.01717.41
7.0.200.0100.01217.54
7.0.190.0070.01417.43
7.0.180.0040.01217.49
7.0.170.0040.01217.48
7.0.160.0000.01917.57
7.0.150.0100.01017.42
7.0.140.0060.04620.80
7.0.130.0060.01317.64
7.0.120.0060.01617.77
7.0.110.0070.01317.47
7.0.100.0000.03619.96
7.0.90.0070.05019.94
7.0.80.0020.05120.05
7.0.70.0030.03520.10
7.0.60.0080.04720.10
7.0.50.0050.05320.17
7.0.40.0050.05517.20
7.0.30.0070.05417.03
7.0.20.0070.05017.08
7.0.10.0030.06017.10
7.0.00.0130.04517.07
5.6.400.0130.01919.18
5.6.390.0030.02619.38
5.6.380.0030.02418.97
5.6.370.0070.02118.84
5.6.360.0030.03019.19
5.6.350.0170.01319.32
5.6.340.0030.02719.03
5.6.330.0030.02319.40
5.6.320.0070.03419.13
5.6.310.0100.01719.25
5.6.300.0030.02519.16
5.6.290.0100.02019.37
5.6.280.0030.05822.44
5.6.270.0030.03119.21
5.6.260.0030.03019.14
5.6.250.0070.05622.23
5.6.240.0050.06422.30
5.6.230.0080.06122.21
5.6.220.0070.04122.23
5.6.210.0150.04822.10
5.6.200.0080.04222.40
5.6.190.0130.05522.39
5.6.180.0090.05822.35
5.6.170.0100.05722.37
5.6.160.0100.05322.42
5.6.150.0060.04622.26
5.6.140.0030.06522.35
5.6.130.0100.05722.46
5.6.120.0070.05822.45
5.6.110.0070.04222.44
5.6.100.0050.03822.29
5.6.90.0070.05522.38
5.6.80.0050.04922.04
5.6.70.0080.06022.06
5.6.60.0050.04521.97
5.6.50.0030.05922.07
5.6.40.0130.05222.13
5.6.30.0130.04822.16
5.6.20.0120.06021.97
5.6.10.0070.05622.03
5.6.00.0090.05322.12
5.5.380.0100.05222.00
5.5.370.0130.05622.16
5.5.360.0080.06622.11
5.5.350.0090.06022.14
5.5.340.0120.05722.17
5.5.330.0050.06522.30
5.5.320.0100.05322.33
5.5.310.0120.05622.27
5.5.300.0150.05322.28
5.5.290.0070.05822.18
5.5.280.0080.05722.17
5.5.270.0100.05522.47
5.5.260.0120.05722.28
5.5.250.0080.05622.23
5.5.240.0100.05121.78
5.5.230.0080.06021.93
5.5.220.0080.05521.80
5.5.210.0080.03522.00
5.5.200.0050.06121.97
5.5.190.0050.05821.79
5.5.180.0080.05921.91
5.5.170.0030.02419.07
5.5.160.0080.05521.91
5.5.150.0070.05521.98
5.5.140.0050.05521.74
5.5.130.0120.05121.91
5.5.120.0080.05821.89
5.5.110.0100.03821.78
5.5.100.0100.05521.81
5.5.90.0050.05121.93
5.5.80.0120.04522.01
5.5.70.0100.05621.97
5.5.60.0090.05921.96
5.5.50.0050.04221.96
5.5.40.0100.05021.75
5.5.30.0030.05521.91
5.5.20.0080.05321.71
5.5.10.0080.05122.01
5.5.00.0130.04221.86
5.4.450.0050.05720.02
5.4.440.0080.03919.76
5.4.430.0070.05319.89
5.4.420.0050.06019.88
5.4.410.0110.02919.73
5.4.400.0070.05119.64
5.4.390.0080.05619.76
5.4.380.0130.04719.70
5.4.370.0070.04119.58
5.4.360.0080.05419.66
5.4.350.0050.05819.45
5.4.340.0120.04019.83
5.4.330.0060.01915.82
5.4.320.0070.05319.73
5.4.310.0120.04819.69
5.4.300.0100.04819.79
5.4.290.0070.03419.74
5.4.280.0130.05519.78
5.4.270.0100.05219.74
5.4.260.0080.05519.62
5.4.250.0080.03719.81
5.4.240.0050.03519.49
5.4.230.0070.04219.68
5.4.220.0100.04319.53
5.4.210.0070.06219.73
5.4.200.0050.06019.76
5.4.190.0070.05219.61
5.4.180.0100.05019.73
5.4.170.0180.03119.53
5.4.160.0070.05219.52
5.4.150.0090.05619.81
5.4.140.0070.05518.46
5.4.130.0070.05418.41
5.4.120.0030.05818.45
5.4.110.0030.04618.32
5.4.100.0130.04518.43
5.4.90.0050.03918.36
5.4.80.0070.04118.33
5.4.70.0080.04818.40
5.4.60.0120.04818.36
5.4.50.0020.05718.43
5.4.40.0080.05618.47
5.4.30.0080.05818.33
5.4.20.0050.04118.41
5.4.10.0120.05418.49
5.4.00.0080.05218.13
5.3.290.0130.06120.49
5.3.280.0100.06320.35
5.3.270.0080.06120.40
5.3.260.0110.07120.24
5.3.250.0070.06620.31
5.3.240.0130.06020.37
5.3.230.0070.05220.30
5.3.220.0030.06320.25
5.3.210.0130.06020.32
5.3.200.0050.06220.30
5.3.190.0060.06620.24
5.3.180.0070.06120.35
5.3.170.0030.06320.39
5.3.160.0100.05720.28
5.3.150.0070.06020.34
5.3.140.0080.06520.28
5.3.130.0090.04220.28
5.3.120.0070.06720.29
5.3.110.0120.05520.39
5.3.100.0070.06020.04
5.3.90.0130.06020.14
5.3.80.0070.07019.94
5.3.70.0050.07019.96
5.3.60.0080.06719.96
5.3.50.0080.06119.92
5.3.40.0120.04819.79
5.3.30.0070.06319.92
5.3.20.0120.05919.79
5.3.10.0050.06319.72
5.3.00.0150.05019.57
5.2.170.0070.07018.00
5.2.160.0070.07318.00
5.2.150.0100.08318.09
5.2.140.0100.06318.18
5.2.130.0070.08318.14
5.2.120.0100.07718.14
5.2.110.0100.07318.06
5.2.100.0070.06718.04
5.2.90.0030.08718.03
5.2.80.0070.07318.09
5.2.70.0170.07318.00
5.2.60.0000.09317.93
5.2.50.0000.09717.97
5.2.40.0070.08717.84
5.2.30.0030.08017.96
5.2.20.0170.04718.00
5.2.10.0030.07317.88
5.2.00.0130.06717.77
5.1.60.0070.06719.00
5.1.50.0070.07319.22
5.1.40.0030.08318.96
5.1.30.0000.09319.37
5.1.20.0030.08319.38
5.1.10.0100.08019.18
5.1.00.0100.07719.07
5.0.50.0030.0438.63
5.0.40.0000.0478.48
5.0.30.0000.0678.48
5.0.20.0030.0438.48
5.0.10.0000.0438.48
5.0.00.0030.0638.48
4.4.90.0070.0338.48
4.4.80.0030.0338.48
4.4.70.0000.0408.48
4.4.60.0070.0338.48
4.4.50.0000.0338.48
4.4.40.0070.0508.48
4.4.30.0000.0338.48
4.4.20.0070.0308.48
4.4.10.0030.0308.48
4.4.00.0000.0308.48
4.3.110.0030.0338.48
4.3.100.0030.0338.48
4.3.90.0030.0378.48
4.3.80.0000.0478.48
4.3.70.0000.0378.48
4.3.60.0030.0238.48
4.3.50.0030.0338.48
4.3.40.0100.0438.48
4.3.30.0000.0338.48
4.3.20.0030.0308.48
4.3.10.0030.0338.48
4.3.00.0070.0338.48

preferences:
47.11 ms | 401 KiB | 5 Q