3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Element { } class Super { public function test() { $this->getOptions(); } protected function getOptions(Element $element) : array { return ["element", "Eelement"]; } } class Child extends Super { protected function getOptions(Element $element) : array { return ["ok", "Test"]; } } $super = new Super(); $super->test(); $child = new Child(); $child->test();

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.0120.00618.64
8.3.50.0160.00521.99
8.3.40.0120.00318.61
8.3.30.0060.00918.70
8.3.20.0070.00020.30
8.3.10.0090.00020.45
8.3.00.0150.00020.77
8.2.180.0120.00918.66
8.2.170.0070.01022.96
8.2.160.0070.00722.25
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00321.00
8.2.120.0040.00426.35
8.2.110.0030.00622.31
8.2.100.0070.00318.04
8.2.90.0040.00419.03
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00417.78
8.2.50.0030.00518.09
8.2.40.0040.00420.59
8.2.30.0070.00019.43
8.2.20.0000.00717.71
8.2.10.0000.00717.99
8.2.00.0030.00518.04
8.1.280.0180.00025.92
8.1.270.0070.01123.80
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.06
8.1.230.0110.00020.94
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00517.23
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0070.00318.61
8.1.160.0040.00420.67
8.1.150.0040.00420.67
8.1.140.0060.00319.39
8.1.130.0070.00017.56
8.1.120.0060.00317.33
8.1.110.0070.00017.28
8.1.100.0000.00717.30
8.1.90.0040.00417.37
8.1.80.0040.00417.42
8.1.70.0070.00017.32
8.1.60.0050.00217.44
8.1.50.0040.00417.50
8.1.40.0030.00717.44
8.1.30.0040.00417.60
8.1.20.0020.00517.48
8.1.10.0040.00417.59
8.1.00.0070.00017.42
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0040.00417.21
8.0.260.0040.00418.34
8.0.250.0000.00616.97
8.0.240.0050.00317.02
8.0.230.0070.00016.85
8.0.220.0060.00316.87
8.0.210.0030.00616.91
8.0.200.0000.00616.95
8.0.190.0070.00017.02
8.0.180.0030.00316.81
8.0.170.0040.00416.86
8.0.160.0020.00516.84
8.0.150.0040.00416.86
8.0.140.0060.00316.90
8.0.130.0050.00013.30
8.0.120.0040.00416.75
8.0.110.0000.00716.79
8.0.100.0040.00416.91
8.0.90.0000.00816.90
8.0.80.0120.00416.82
8.0.70.0080.00016.71
8.0.60.0000.00716.89
8.0.50.0040.00416.93
8.0.30.0070.01017.03
8.0.20.0120.00717.40
8.0.10.0000.00816.89
8.0.00.0110.00916.82
7.4.330.0020.00216.72
7.4.320.0060.00016.38
7.4.300.0030.00316.51
7.4.290.0040.00416.61
7.4.280.0040.00416.48
7.4.270.0030.00316.50
7.4.260.0050.00316.60
7.4.250.0040.00416.46
7.4.240.0040.00316.61
7.4.230.0070.00016.63
7.4.220.0040.01616.45
7.4.210.0080.00816.49
7.4.200.0070.00016.51
7.4.160.0070.00716.31
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0180.00916.56
7.4.120.0100.00716.59
7.4.110.0030.01316.50
7.4.100.0070.01216.37
7.4.90.0180.00316.57
7.4.80.0100.01419.39
7.4.70.0040.01716.51
7.4.60.0100.00616.35
7.4.50.0060.01016.68
7.4.40.0130.00316.52
7.4.30.0080.00816.57
7.4.00.0070.00714.83
7.3.330.0070.00013.35
7.3.320.0020.00213.35
7.3.310.0040.00416.43
7.3.300.0030.00316.38
7.3.290.0070.00716.37
7.3.280.0070.01316.31
7.3.270.0130.01017.40
7.3.260.0060.01216.26
7.3.240.0060.01316.39
7.3.230.0000.01616.39
7.3.210.0100.00616.60
7.3.200.0130.00316.50
7.3.190.0040.01216.24
7.3.180.0130.00616.43
7.3.170.0040.01816.65
7.3.160.0060.00916.39
7.3.120.0160.00014.83
7.3.110.0060.00914.74
7.3.100.0100.00714.48
7.3.90.0070.01014.83
7.3.80.0140.00014.75
7.3.70.0100.00314.80
7.3.60.0040.00714.47
7.3.50.0000.01514.91
7.3.40.0120.00414.70
7.3.30.0100.00714.84
7.3.20.0100.00616.69
7.3.10.0110.00316.57
7.3.00.0050.00516.61
7.2.330.0090.00916.70
7.2.320.0180.00016.65
7.2.310.0080.00816.71
7.2.300.0060.01116.61
7.2.290.0040.01116.58
7.2.240.0030.01214.93
7.2.230.0080.00414.59
7.2.220.0030.01014.83
7.2.210.0080.00614.99
7.2.200.0090.00615.05
7.2.190.0110.00314.89
7.2.180.0030.01315.07
7.2.170.0100.00715.09
7.2.160.0090.00314.84
7.2.150.0100.00716.91
7.2.140.0030.00716.80
7.2.130.0070.01116.59
7.2.120.0080.01216.83
7.2.110.0070.01116.60
7.2.100.0060.01016.81
7.2.90.0000.01216.92
7.2.80.0060.01216.88
7.2.70.0030.01316.92
7.2.60.0050.00816.89
7.2.50.0090.00616.78
7.2.40.0090.00916.95
7.2.30.0100.00716.93
7.2.20.0030.01016.62
7.2.10.0030.01316.95
7.2.00.0020.01118.02
7.1.330.0040.01115.23
7.1.320.0040.01115.44
7.1.310.0040.01115.80
7.1.300.0040.00715.54
7.1.290.0070.01015.40
7.1.280.0060.00315.63
7.1.270.0030.00615.43
7.1.260.0100.00715.80
7.1.250.0000.01715.69
7.1.200.0000.00815.59
7.1.100.0040.00417.89
7.1.70.0060.00316.68
7.1.60.0180.00719.27
7.1.50.0040.01916.62
7.1.00.0070.07322.30
7.0.200.0420.00314.62
7.0.60.0070.07021.80
7.0.50.0030.06317.85
7.0.40.0130.08020.24
7.0.30.0330.06720.30
7.0.20.0200.05020.26
7.0.10.0100.08020.05
7.0.00.0070.08320.06
5.6.280.0000.03321.05
5.6.210.0130.05320.47
5.6.200.0100.05718.12
5.6.190.0130.04320.33
5.6.180.0330.07020.77
5.6.170.0200.06720.51
5.6.160.0030.06020.50
5.6.150.0070.04018.18
5.6.140.0100.08318.18
5.6.130.0000.04718.28
5.6.120.0100.07720.88
5.6.110.0170.08021.02
5.6.100.0070.08720.98
5.6.90.0100.07321.08
5.6.80.0000.07020.51
5.5.350.4270.04320.32
5.5.340.0130.05718.04
5.5.330.0070.07020.30
5.5.320.0630.07020.51
5.5.310.0200.08320.27
5.5.300.0000.04317.90
5.5.290.0100.07718.04
5.5.280.0000.04720.85
5.5.270.0070.06020.77
5.5.260.0070.07720.80
5.5.250.0030.08720.69
5.5.240.0100.07720.26

preferences:
58.43 ms | 401 KiB | 5 Q