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 ["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.0140.00418.55
8.3.50.0110.00821.92
8.3.40.0190.00318.44
8.3.30.0110.00318.39
8.3.20.0070.00020.16
8.3.10.0040.00818.60
8.3.00.0030.00620.52
8.2.180.0140.00718.41
8.2.170.0150.00022.96
8.2.160.0070.01119.33
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00621.04
8.2.120.0000.00826.35
8.2.110.0030.00721.12
8.2.100.0030.00917.78
8.2.90.0000.00817.78
8.2.80.0070.00018.06
8.2.70.0000.00917.50
8.2.60.0030.00617.93
8.2.50.0000.00818.09
8.2.40.0030.00520.43
8.2.30.0030.00319.43
8.2.20.0000.00717.67
8.2.10.0040.00417.87
8.2.00.0040.00417.94
8.1.280.0040.01125.92
8.1.270.0150.00623.64
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00622.44
8.1.230.0040.00820.93
8.1.220.0040.00417.74
8.1.210.0040.00418.85
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0060.00618.39
8.1.160.0030.00620.64
8.1.150.0000.00818.84
8.1.140.0000.00919.55
8.1.130.0040.00417.51
8.1.120.0030.00617.45
8.1.110.0020.00517.34
8.1.100.0080.00017.41
8.1.90.0070.00017.31
8.1.80.0040.00417.27
8.1.70.0030.00317.28
8.1.60.0080.00017.59
8.1.50.0030.00617.45
8.1.40.0100.00017.41
8.1.30.0080.00017.52
8.1.20.0030.00517.46
8.1.10.0080.00017.43
8.1.00.0040.00417.37
8.0.300.0070.00019.86
8.0.290.0040.00416.63
8.0.280.0070.00018.37
8.0.270.0000.00717.11
8.0.260.0040.00417.09
8.0.250.0000.00716.94
8.0.240.0000.00816.92
8.0.230.0040.00416.96
8.0.220.0040.00416.92
8.0.210.0030.00316.78
8.0.200.0000.00616.91
8.0.190.0000.00716.93
8.0.180.0040.00416.80
8.0.170.0030.00616.89
8.0.160.0040.00416.80
8.0.150.0030.00316.80
8.0.140.0040.00416.87
8.0.130.0000.00513.33
8.0.120.0040.00416.74
8.0.110.0070.00016.85
8.0.100.0000.00917.00
8.0.90.0070.00016.78
8.0.80.0030.01316.79
8.0.70.0040.00416.68
8.0.60.0000.00716.93
8.0.50.0040.00416.69
8.0.30.0120.00516.94
8.0.20.0100.01017.40
8.0.10.0080.00016.89
8.0.00.0090.01116.67
7.4.330.0000.00516.71
7.4.320.0030.00316.30
7.4.300.0030.00316.65
7.4.290.0000.00716.58
7.4.280.0040.00416.64
7.4.270.0030.00316.60
7.4.260.0060.00616.59
7.4.250.0000.00816.58
7.4.240.0030.00316.65
7.4.230.0030.00316.39
7.4.220.0150.00916.57
7.4.210.0070.00816.53
7.4.200.0040.00416.70
7.4.160.0110.00516.46
7.4.150.0110.00617.40
7.4.140.0100.01317.86
7.4.130.0080.01616.50
7.4.120.0090.00916.41
7.4.110.0150.00616.57
7.4.100.0090.00916.42
7.4.90.0080.00916.52
7.4.80.0090.01619.39
7.4.70.0090.00816.46
7.4.60.0070.01316.51
7.4.50.0110.00716.49
7.4.40.0080.00816.43
7.4.30.0110.00616.39
7.4.00.0080.00914.76
7.3.330.0040.00413.17
7.3.320.0050.00013.09
7.3.310.0070.00316.13
7.3.300.0000.00616.11
7.3.290.0060.00016.12
7.3.280.0080.00816.21
7.3.270.0070.01117.40
7.3.260.0120.00616.48
7.3.240.0100.01016.43
7.3.230.0130.00316.39
7.3.210.0120.00416.31
7.3.200.0070.01016.23
7.3.190.0130.00316.60
7.3.180.0090.00616.22
7.3.170.0050.01116.27
7.3.160.0080.00816.27
7.3.120.0090.00614.56
7.3.110.0060.01214.55
7.3.100.0030.00714.57
7.3.90.0060.00314.48
7.3.80.0040.01114.77
7.3.70.0030.01314.67
7.3.60.0040.01114.75
7.3.50.0030.01014.55
7.3.40.0090.00014.77
7.3.30.0040.00814.51
7.3.20.0080.00416.28
7.3.10.0070.00716.34
7.3.00.0030.01016.69
7.2.330.0150.00416.17
7.2.320.0100.01216.43
7.2.310.0140.00416.59
7.2.300.0110.00616.46
7.2.290.0080.00816.43
7.2.250.0080.00814.77
7.2.240.0060.01014.87
7.2.230.0070.00714.91
7.2.220.0030.01015.09
7.2.210.0070.00314.61
7.2.200.0060.00915.00
7.2.190.0060.01014.62
7.2.180.0060.00914.96
7.2.170.0000.01015.10
7.2.60.0060.00916.96
7.2.00.0030.00619.07
7.1.330.0070.00715.46
7.1.320.0090.00615.65
7.1.310.0040.01115.62
7.1.300.0090.00315.36
7.1.290.0060.00315.60
7.1.280.0120.00315.68
7.1.270.0000.00915.62
7.1.260.0050.00515.56
7.1.200.0180.01015.17
7.1.100.0040.00717.76
7.1.70.0040.00417.10
7.1.60.0070.01719.27
7.1.50.0070.00416.99
7.1.00.0030.07722.36
7.0.200.0250.00714.53
7.0.60.0070.07721.75
7.0.50.0100.07717.87
7.0.40.0100.08020.09
7.0.30.0270.07720.33
7.0.20.0370.08320.10
7.0.10.0030.08320.30
7.0.00.0070.09020.21
5.6.280.0030.06721.14
5.6.210.0000.04320.51
5.6.200.0030.05318.20
5.6.190.0100.05020.52
5.6.180.0370.05320.50
5.6.170.0200.04720.40
5.6.160.0130.06020.55
5.6.150.0030.08318.16
5.6.140.0130.07318.24
5.6.130.0070.03718.14
5.6.120.0130.03720.91
5.6.110.0100.05021.14
5.6.100.0100.08021.04
5.6.90.0030.04021.00
5.6.80.0030.04720.52
5.5.350.3770.03720.36
5.5.340.0030.04017.96
5.5.330.0070.06320.32
5.5.320.0300.03720.27
5.5.310.0200.04320.32
5.5.300.0000.04017.95
5.5.290.0070.08018.02
5.5.280.0030.04020.81
5.5.270.0130.07720.77
5.5.260.0130.07720.77
5.5.250.0130.06720.70
5.5.240.0000.08020.38

preferences:
52.44 ms | 401 KiB | 5 Q