3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Element { } class Hello { } class Super extends Hello { public function test() { var_dump($this->getOptions(new Element)); } protected function getOptions(Element $element) : array { return null; } } 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.0180.00318.55
8.3.50.0130.00822.05
8.3.40.0040.01218.97
8.3.30.0000.01418.79
8.3.20.0000.00720.25
8.3.10.0060.00320.40
8.3.00.0080.00020.62
8.2.180.0090.00916.63
8.2.170.0070.00722.96
8.2.160.0070.00722.27
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00021.00
8.2.120.0070.00026.35
8.2.110.0060.00322.26
8.2.100.0110.00017.91
8.2.90.0050.00319.17
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00717.93
8.2.50.0000.00918.09
8.2.40.0070.00020.59
8.2.30.0000.00719.33
8.2.20.0050.00217.68
8.2.10.0050.00318.00
8.2.00.0000.00818.04
8.1.280.0090.00925.92
8.1.270.0090.00623.84
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0030.00623.87
8.1.230.0110.00020.85
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0090.00017.22
8.1.180.0030.00518.10
8.1.170.0030.00918.57
8.1.160.0050.00320.65
8.1.150.0000.00818.83
8.1.140.0030.00619.53
8.1.130.0080.00017.64
8.1.120.0030.00717.47
8.1.110.0050.00317.41
8.1.100.0040.00417.38
8.1.90.0000.00817.37
8.1.80.0080.00017.43
8.1.70.0040.00417.41
8.1.60.0030.00517.55
8.1.50.0030.00617.58
8.1.40.0070.00317.58
8.1.30.0080.00017.49
8.1.20.0000.00717.48
8.1.10.0050.00317.59
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0000.00817.14
8.0.260.0000.00617.19
8.0.250.0030.00316.98
8.0.240.0050.00216.92
8.0.230.0000.00716.92
8.0.220.0040.00416.77
8.0.210.0030.00316.93
8.0.200.0060.00016.96
8.0.190.0040.00416.93
8.0.180.0080.00416.85
8.0.170.0040.00416.89
8.0.160.0050.00316.88
8.0.150.0000.00816.83
8.0.140.0000.00716.86
8.0.130.0050.00013.33
8.0.120.0070.00016.77
8.0.110.0020.00516.85
8.0.100.0080.00016.89
8.0.90.0070.00016.77
8.0.80.0140.00316.95
8.0.70.0050.00216.66
8.0.60.0040.00416.72
8.0.50.0050.00316.73
8.0.30.0070.01016.95
8.0.20.0120.00717.40
8.0.10.0050.00317.01
8.0.00.0090.01316.79
7.4.330.0000.00516.79
7.4.320.0000.00616.45
7.4.300.0040.00416.51
7.4.290.0030.00316.49
7.4.280.0030.00516.51
7.4.270.0030.00416.53
7.4.260.0050.00316.60
7.4.250.0040.00416.65
7.4.240.0040.00416.60
7.4.230.0030.00316.43
7.4.220.0100.01716.55
7.4.210.0060.01016.52
7.4.200.0000.00716.51
7.4.160.0060.01016.55
7.4.150.0130.00717.40
7.4.140.0110.01417.86
7.4.130.0030.01416.55
7.4.120.0090.00816.52
7.4.110.0110.00616.45
7.4.100.0070.01116.57
7.4.90.0070.01016.48
7.4.80.0110.01019.39
7.4.70.0090.00916.55
7.4.60.0060.01316.59
7.4.50.0070.00716.38
7.4.40.0110.00616.46
7.4.30.0130.01016.40
7.4.00.0070.00814.67
7.3.330.0030.00313.16
7.3.320.0030.00313.24
7.3.310.0030.00316.40
7.3.300.0030.00316.43
7.3.290.0000.00716.42
7.3.280.0100.00916.36
7.3.270.0120.01217.40
7.3.260.0160.00316.48
7.3.250.0080.00916.28
7.3.240.0080.00916.30
7.3.230.0130.01016.39
7.3.210.0160.00616.37
7.3.200.0060.01216.55
7.3.190.0080.00816.58
7.3.180.0140.00316.36
7.3.170.0140.01016.46
7.3.160.0130.00316.29
7.3.120.0070.01014.80
7.3.110.0110.00714.67
7.3.100.0150.00014.77
7.3.90.0040.01114.80
7.3.80.0060.01214.80
7.3.70.0110.00314.77
7.3.60.0070.01014.79
7.3.50.0140.00314.79
7.3.40.0060.00514.96
7.3.30.0060.00914.83
7.3.20.0060.00616.39
7.3.10.0060.00616.51
7.3.00.0070.00716.64
7.2.330.0060.01216.72
7.2.320.0100.01016.33
7.2.310.0060.01016.36
7.2.300.0060.01116.46
7.2.290.0060.00916.73
7.2.250.0060.01314.59
7.2.240.0060.01314.70
7.2.230.0030.00614.84
7.2.220.0030.00715.01
7.2.210.0030.00615.04
7.2.200.0060.00614.93
7.2.190.0100.00714.96
7.2.180.0070.00714.97
7.2.170.0060.01214.67
7.2.60.0160.00616.26
7.2.00.0000.01719.18
7.1.330.0060.01015.43
7.1.320.0070.00715.65
7.1.310.0030.01015.71
7.1.300.0100.00315.73
7.1.290.0060.00815.57
7.1.280.0060.00315.42
7.1.270.0080.00415.64
7.1.260.0000.01415.48
7.1.200.0060.00915.69
7.1.100.0080.00318.04
7.1.70.0000.01016.91
7.1.60.0100.01419.27
7.1.50.0060.00916.70
7.1.00.0070.07022.45
7.0.200.0260.00414.79
7.0.60.0070.07721.87
7.0.50.0070.08317.86
7.0.40.0070.08020.30
7.0.30.0270.08020.24
7.0.20.0300.05020.33
7.0.10.0130.05020.05
7.0.00.0100.06320.41
5.6.280.0000.06720.91
5.6.210.0070.03720.63
5.6.200.0100.04718.16
5.6.190.0170.04720.39
5.6.180.0330.07020.77
5.6.170.0300.07320.44
5.6.160.0130.08020.52
5.6.150.0100.06018.15
5.6.140.0030.07318.15
5.6.130.0000.04318.15
5.6.120.0130.06721.00
5.6.110.0070.05721.15
5.6.100.0100.08021.00
5.6.90.0100.08320.88
5.6.80.0070.07720.36
5.5.350.4270.04720.33
5.5.340.0100.04317.96
5.5.330.0000.04720.34
5.5.320.0600.06720.27
5.5.310.0300.07020.25
5.5.300.0100.03317.97
5.5.290.0030.04718.08
5.5.280.0030.04020.82
5.5.270.0100.07720.96
5.5.260.0100.06720.87
5.5.250.0170.06020.79
5.5.240.0000.09020.27

preferences:
57.07 ms | 401 KiB | 5 Q