3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Element { } class Super { 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.0160.00318.43
8.3.50.0080.00818.05
8.3.40.0090.00618.55
8.3.30.0060.00918.77
8.3.20.0040.00420.29
8.3.10.0070.00418.83
8.3.00.0080.00020.64
8.2.180.0080.00818.29
8.2.170.0100.00322.96
8.2.160.0090.00919.16
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00421.05
8.2.120.0080.00026.35
8.2.110.0080.00020.43
8.2.100.0040.00717.91
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0070.00317.38
8.2.60.0040.00417.93
8.2.50.0070.00318.09
8.2.40.0000.00820.37
8.2.30.0040.00419.35
8.2.20.0000.00817.49
8.2.10.0040.00418.09
8.2.00.0040.00417.86
8.1.280.0100.00725.92
8.1.270.0130.00724.01
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0000.00823.96
8.1.230.0060.00617.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.01118.37
8.1.160.0040.00420.57
8.1.150.0040.00418.81
8.1.140.0030.00519.48
8.1.130.0030.00317.70
8.1.120.0030.00617.38
8.1.110.0040.00417.34
8.1.100.0040.00417.45
8.1.90.0000.00717.38
8.1.80.0050.00317.29
8.1.70.0000.00717.43
8.1.60.0000.00817.61
8.1.50.0000.00917.52
8.1.40.0000.01117.57
8.1.30.0000.00817.73
8.1.20.0040.00417.43
8.1.10.0000.00717.50
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0040.00418.38
8.0.270.0080.00017.24
8.0.260.0000.00617.11
8.0.250.0080.00016.89
8.0.240.0030.00516.84
8.0.230.0080.00016.91
8.0.220.0080.00016.95
8.0.210.0050.00216.88
8.0.200.0000.00616.94
8.0.190.0070.00016.91
8.0.180.0040.00416.80
8.0.170.0030.00516.80
8.0.160.0000.00716.89
8.0.150.0030.00316.74
8.0.140.0000.00716.72
8.0.130.0050.00013.25
8.0.120.0050.00316.80
8.0.110.0000.00816.71
8.0.100.0080.00016.76
8.0.90.0030.00516.91
8.0.80.0040.01716.78
8.0.70.0070.00016.91
8.0.60.0080.00016.78
8.0.50.0040.00416.84
8.0.30.0080.00917.18
8.0.20.0130.00617.40
8.0.10.0000.00817.01
8.0.00.0120.00716.71
7.4.330.0030.00316.84
7.4.320.0060.00016.44
7.4.300.0030.00316.59
7.4.290.0030.00316.61
7.4.280.0040.00416.59
7.4.270.0000.00616.47
7.4.260.0030.00616.50
7.4.250.0040.00416.39
7.4.240.0000.00716.50
7.4.230.0020.00516.34
7.4.220.0140.00316.38
7.4.210.0080.00616.57
7.4.200.0000.00716.63
7.4.160.0030.01216.59
7.4.150.0200.00617.40
7.4.140.0100.01217.86
7.4.130.0060.01316.44
7.4.120.0080.01016.37
7.4.110.0040.01516.52
7.4.100.0110.00616.43
7.4.90.0100.00716.26
7.4.80.0170.00719.39
7.4.70.0140.00716.57
7.4.60.0070.01116.46
7.4.50.0070.00716.57
7.4.40.0030.01316.38
7.4.30.0000.01616.59
7.4.10.0070.00715.21
7.4.00.0050.00914.85
7.3.330.0030.00313.24
7.3.320.0050.00013.16
7.3.310.0000.00616.26
7.3.300.0000.00816.15
7.3.290.0000.00716.10
7.3.280.0080.01016.22
7.3.270.0100.01017.40
7.3.260.0100.01316.21
7.3.240.0050.01516.36
7.3.230.0070.01016.43
7.3.210.0140.00316.16
7.3.200.0120.00316.49
7.3.190.0150.00616.29
7.3.180.0160.00016.39
7.3.170.0060.01016.50
7.3.160.0110.00616.45
7.3.130.0060.01314.69
7.3.120.0070.01114.71
7.3.110.0110.00714.97
7.3.100.0070.00714.40
7.3.90.0100.00714.68
7.3.80.0030.01014.53
7.3.70.0090.00314.59
7.3.60.0040.01114.78
7.3.50.0130.00314.66
7.3.40.0030.01014.71
7.3.30.0030.00914.87
7.3.20.0080.00416.56
7.3.10.0090.00616.37
7.3.00.0030.00616.56
7.2.330.0100.00716.52
7.2.320.0060.01216.55
7.2.310.0050.01116.63
7.2.300.0040.01316.68
7.2.290.0100.00716.56
7.2.260.0070.01315.01
7.2.250.0070.01114.83
7.2.240.0060.01014.96
7.2.230.0090.00614.89
7.2.220.0040.01114.96
7.2.210.0030.01015.23
7.2.200.0070.00714.61
7.2.190.0080.00415.05
7.2.180.0040.00714.83
7.2.170.0000.01014.97
7.2.160.0080.00414.92
7.2.150.0070.00716.70
7.2.140.0030.01016.85
7.2.130.0030.01016.83
7.2.120.0000.00916.78
7.2.110.0000.01316.82
7.2.100.0030.00816.68
7.2.90.0060.00916.87
7.2.80.0130.00316.61
7.2.70.0000.01416.56
7.2.60.0050.00716.66
7.2.50.0060.01016.95
7.2.40.0080.00816.72
7.2.30.0070.01116.86
7.2.20.0050.00516.84
7.2.10.0040.00716.52
7.2.00.0080.00617.96
7.1.330.0040.01115.63
7.1.320.0030.00915.73
7.1.310.0070.00715.39
7.1.300.0080.00415.51
7.1.290.0090.00315.33
7.1.280.0060.00615.37
7.1.270.0000.01115.59
7.1.260.0060.00315.61
7.1.250.0030.01015.66
7.1.240.0000.01715.63
7.1.230.0130.00315.72
7.1.220.0040.00815.39
7.1.210.0040.00815.27
7.1.200.0040.00615.60
7.1.190.0040.00915.73
7.1.180.0040.00815.88
7.1.170.0040.01115.36
7.1.160.0070.01015.58
7.1.150.0030.01015.51
7.1.140.0000.01515.60
7.1.130.0070.00715.41
7.1.120.0080.00415.66
7.1.110.0040.01115.34
7.1.100.0040.01016.77
7.1.90.0130.00015.66
7.1.80.0070.00315.41
7.1.70.0050.00516.24
7.1.60.0030.01417.53
7.1.50.0060.00416.07
7.1.40.0030.00615.44
7.1.30.0040.00815.67
7.1.20.0000.01415.64
7.1.10.0030.00915.73
7.1.00.0080.03519.03
7.0.330.0060.00614.97
7.0.320.0040.01115.45
7.0.310.0040.00915.47
7.0.300.0070.00415.07
7.0.290.0040.00815.29
7.0.280.0060.00915.27
7.0.270.0040.00715.36
7.0.260.0000.01615.30
7.0.250.0070.00715.27
7.0.240.0110.00415.45
7.0.230.0070.00715.25
7.0.220.0040.01115.33
7.0.210.0040.00915.32
7.0.200.0250.00814.99
7.0.190.0060.00615.30
7.0.180.0090.00415.30
7.0.170.0050.00315.25
7.0.160.0060.00915.31
7.0.150.0060.00615.17
7.0.140.0060.00615.10
7.0.130.0060.00614.94
7.0.120.0000.01115.08
7.0.110.0040.00815.34
7.0.100.0030.01015.32
7.0.90.0100.00315.40
7.0.80.0040.00715.29
7.0.70.0070.00315.30
7.0.60.0050.03718.46
7.0.50.0050.02716.66
7.0.40.0070.04016.81
7.0.30.0140.02516.58
7.0.20.0200.04516.72
7.0.10.0110.04116.65
7.0.00.0040.02916.62
5.6.400.0080.00014.17
5.6.390.0070.00314.10
5.6.380.0060.00314.35
5.6.370.0000.01114.16
5.6.360.0030.00614.36
5.6.350.0070.00413.97
5.6.340.0100.00514.05
5.6.330.0050.00513.98
5.6.320.0000.01214.39
5.6.310.0070.00714.18
5.6.300.0030.01013.96
5.6.290.0030.00614.05
5.6.280.0030.02017.51
5.6.270.0060.00314.12
5.6.260.0030.01014.26
5.6.250.0100.00314.32
5.6.240.0080.00014.08
5.6.230.0070.00713.97
5.6.220.0080.00814.32
5.6.210.0050.02917.27
5.6.200.0030.03916.15
5.6.190.0050.03017.19
5.6.180.0130.04617.48
5.6.170.0190.03617.28
5.6.160.0060.04417.26
5.6.150.0090.04116.13
5.6.140.0020.04216.23
5.6.130.0030.02616.23
5.6.120.0100.03017.53
5.6.110.0050.02717.57
5.6.100.0080.04117.70
5.6.90.0090.02417.51
5.6.80.0040.04117.32
5.6.70.0040.01113.99
5.6.60.0030.00914.07
5.6.50.0060.00613.80
5.6.40.0000.01514.00
5.6.30.0060.00614.13
5.6.20.0080.00814.15
5.6.10.0000.01414.03
5.6.00.0110.00014.09
5.5.380.0000.00814.07
5.5.370.0050.00514.36
5.5.360.0060.00314.44
5.5.350.2160.01617.07
5.5.340.0100.03816.08
5.5.330.0070.03517.26
5.5.320.0160.02517.17
5.5.310.0170.04017.32
5.5.300.0060.02016.04
5.5.290.0060.02516.11
5.5.280.0030.02417.58
5.5.270.0050.03317.26
5.5.260.0060.02517.31
5.5.250.0030.04717.23
5.5.240.0050.04217.28
5.5.230.0000.01413.97
5.5.220.0100.00713.91
5.5.210.0080.00013.99
5.5.200.0030.01013.80
5.5.190.0000.01314.04
5.5.180.0090.00914.11
5.5.170.0000.00814.07
5.5.160.0060.00314.23
5.5.150.0030.00914.15
5.5.140.0060.00914.00
5.5.130.0070.00713.89
5.5.120.0100.00314.01
5.5.110.0030.01013.96
5.5.100.0070.00314.14
5.5.90.0100.00313.86
5.5.80.0080.00014.08
5.5.70.0000.01113.91
5.5.60.0030.00913.80
5.5.50.0040.00813.98
5.5.40.0060.00613.72
5.5.30.0070.00713.97
5.5.20.0090.00314.04
5.5.10.0120.00014.00
5.5.00.0070.00713.77

preferences:
67.79 ms | 401 KiB | 5 Q