3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Element { } class Super { public function test() { $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.0110.00718.43
8.3.50.0300.00722.05
8.3.40.0090.00618.81
8.3.30.0140.00018.42
8.3.20.0000.00720.29
8.3.10.0040.00420.27
8.3.00.0040.01120.68
8.2.180.0210.00018.13
8.2.170.0100.00722.96
8.2.160.0030.01022.12
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00321.13
8.2.120.0040.00426.35
8.2.110.0090.00321.05
8.2.100.0140.00017.91
8.2.90.0030.00617.90
8.2.80.0000.00818.06
8.2.70.0060.00317.46
8.2.60.0070.00017.80
8.2.50.0080.00019.23
8.2.40.0050.00220.42
8.2.30.0050.00319.36
8.2.20.0000.00817.60
8.2.10.0000.00718.05
8.2.00.0000.00718.07
8.1.280.0100.00325.92
8.1.270.0160.00423.68
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.52
8.1.230.0080.00321.03
8.1.220.0050.00317.74
8.1.210.0060.00318.86
8.1.200.0060.00317.22
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0030.00918.50
8.1.160.0040.00420.62
8.1.150.0000.00720.61
8.1.140.0080.00019.51
8.1.130.0000.00717.63
8.1.120.0110.00017.28
8.1.110.0000.00817.36
8.1.100.0000.00717.36
8.1.90.0000.00717.41
8.1.80.0000.00817.27
8.1.70.0070.00017.37
8.1.60.0000.00717.62
8.1.50.0040.00417.47
8.1.40.0030.00617.41
8.1.30.0030.00517.59
8.1.20.0000.00817.41
8.1.10.0070.00017.49
8.1.00.0040.00417.44
8.0.300.0000.00719.91
8.0.290.0000.00716.63
8.0.280.0000.00718.29
8.0.270.0030.00517.19
8.0.260.0000.00717.24
8.0.250.0000.00816.99
8.0.240.0080.00016.89
8.0.230.0040.00316.99
8.0.220.0050.00216.92
8.0.210.0080.00016.78
8.0.200.0030.00316.81
8.0.190.0070.00016.91
8.0.180.0030.00516.92
8.0.170.0040.00416.81
8.0.160.0040.00416.95
8.0.150.0000.00716.85
8.0.140.0040.00416.84
8.0.130.0090.00013.30
8.0.120.0040.00416.70
8.0.110.0000.00716.88
8.0.100.0030.00516.95
8.0.90.0000.00716.85
8.0.80.0070.01316.79
8.0.70.0050.00316.86
8.0.60.0070.00016.86
8.0.50.0000.00716.78
8.0.30.0140.00817.16
8.0.20.0160.01117.40
8.0.10.0030.00316.99
8.0.00.0100.01016.61
7.4.330.0050.00016.72
7.4.320.0030.00316.54
7.4.300.0000.00616.61
7.4.290.0030.00316.48
7.4.280.0030.00516.40
7.4.270.0020.00516.64
7.4.260.0000.00816.59
7.4.250.0040.00416.51
7.4.240.0040.00416.50
7.4.230.0000.00716.50
7.4.220.0210.01216.54
7.4.210.0030.01016.52
7.4.200.0040.00416.38
7.4.160.0150.00016.45
7.4.150.0060.01217.40
7.4.140.0080.01617.86
7.4.130.0140.00516.48
7.4.120.0090.00816.46
7.4.110.0120.00616.34
7.4.100.0030.01416.61
7.4.90.0070.01016.39
7.4.80.0170.00019.39
7.4.70.0060.01016.35
7.4.60.0080.00816.35
7.4.50.0090.00616.47
7.4.40.0080.00816.20
7.4.30.0100.00616.45
7.4.10.0040.01414.99
7.4.00.0050.01214.76
7.3.330.0070.00013.24
7.3.320.0020.00213.09
7.3.310.0030.00316.16
7.3.300.0000.00716.23
7.3.290.0070.01116.24
7.3.280.0090.00916.20
7.3.270.0110.00717.40
7.3.260.0100.00716.49
7.3.250.0100.00716.19
7.3.240.0100.00716.19
7.3.230.0070.01116.39
7.3.210.0120.00616.29
7.3.200.0080.00916.57
7.3.190.0070.01016.54
7.3.180.0060.00916.23
7.3.170.0090.01216.33
7.3.160.0060.00916.35
7.3.130.0100.00714.67
7.3.120.0070.01114.91
7.3.110.0090.00914.68
7.3.100.0030.01014.87
7.3.90.0090.00014.52
7.3.80.0070.00714.66
7.3.70.0060.00314.55
7.3.60.0060.00614.72
7.3.50.0070.00714.60
7.3.40.0070.00714.51
7.3.30.0070.01014.79
7.3.20.0000.01416.58
7.3.10.0040.01116.64
7.3.00.0060.00616.73
7.2.330.0100.00716.22
7.2.320.0070.01416.38
7.2.310.0030.01316.23
7.2.300.0030.01316.64
7.2.290.0030.01316.48
7.2.260.0080.01114.92
7.2.250.0030.00915.15
7.2.240.0040.01114.59
7.2.230.0070.00714.54
7.2.220.0040.01114.89
7.2.210.0080.00815.16
7.2.200.0030.00814.70
7.2.190.0000.01415.09
7.2.180.0070.00714.88
7.2.170.0090.00014.70
7.2.160.0090.00615.03
7.2.150.0000.01216.95
7.2.140.0030.01016.82
7.2.130.0100.00616.78
7.2.120.0040.00716.65
7.2.110.0160.00816.23
7.2.100.0000.01416.98
7.2.90.0060.00916.52
7.2.80.0070.00416.74
7.2.70.0060.01016.63
7.2.60.0030.01116.82
7.2.50.0060.00916.65
7.2.40.0070.01116.87
7.2.30.0080.00416.53
7.2.20.0040.01216.82
7.2.10.0050.00516.73
7.2.00.0050.00918.08
7.1.330.0090.00415.38
7.1.320.0120.00015.51
7.1.310.0060.00315.64
7.1.300.0030.00915.42
7.1.290.0110.00015.70
7.1.280.0040.00715.63
7.1.270.0030.01015.68
7.1.260.0080.00415.67
7.1.250.0040.01215.42
7.1.240.0060.00915.72
7.1.230.0120.00315.64
7.1.220.0030.01015.40
7.1.210.0050.00815.66
7.1.200.0050.00815.75
7.1.190.0070.00315.35
7.1.180.0070.00715.70
7.1.170.0000.01615.42
7.1.160.0030.01015.47
7.1.150.0060.00315.69
7.1.140.0030.00515.55
7.1.130.0060.00315.70
7.1.120.0030.00515.64
7.1.110.0000.00915.69
7.1.100.0060.00616.58
7.1.90.0060.00915.43
7.1.80.0040.01415.59
7.1.70.0050.00416.32
7.1.60.0080.01217.42
7.1.50.0090.00716.22
7.1.40.0030.00615.59
7.1.30.0040.00815.61
7.1.20.0090.00315.54
7.1.10.0030.01015.52
7.1.00.0030.03918.94
7.0.330.0110.00415.03
7.0.320.0080.00315.43
7.0.310.0080.00015.09
7.0.300.0070.00415.21
7.0.290.0070.00715.03
7.0.280.0060.00615.12
7.0.270.0040.00815.45
7.0.260.0060.00315.35
7.0.250.0000.00915.33
7.0.240.0090.00315.11
7.0.230.0040.00415.44
7.0.220.0070.00415.30
7.0.210.0060.00715.00
7.0.200.0120.00515.11
7.0.190.0080.00815.21
7.0.180.0030.01015.31
7.0.170.0040.00815.41
7.0.160.0070.00715.10
7.0.150.0000.01115.18
7.0.140.0070.00715.05
7.0.130.0060.00615.16
7.0.120.0030.00615.45
7.0.110.0030.00615.41
7.0.100.0030.00514.95
7.0.90.0030.01015.21
7.0.80.0000.00815.24
7.0.70.0030.00914.98
7.0.60.0070.02218.45
7.0.50.0050.03216.61
7.0.40.0050.02716.80
7.0.30.0180.04316.73
7.0.20.0140.02416.68
7.0.10.0050.04416.75
7.0.00.0090.02416.84
5.6.400.0060.00314.06
5.6.390.0030.00714.35
5.6.380.0040.00414.40
5.6.370.0000.01614.11
5.6.360.0000.01414.08
5.6.350.0090.00314.05
5.6.340.0070.00714.29
5.6.330.0070.00714.14
5.6.320.0050.00314.45
5.6.310.0060.00613.93
5.6.300.0110.00414.18
5.6.290.0000.01013.87
5.6.280.0030.01214.03
5.6.270.0000.01514.12
5.6.260.0060.00313.96
5.6.250.0040.01114.18
5.6.240.0110.00414.25
5.6.230.0120.00014.16
5.6.220.0120.00614.11
5.6.210.0050.02317.46
5.6.200.0070.04416.21
5.6.190.0070.04717.43
5.6.180.0170.04017.27
5.6.170.0170.04417.36
5.6.160.0050.03917.17
5.6.150.0060.03816.21
5.6.140.0090.02516.07
5.6.130.0120.03716.07
5.6.120.0040.02417.69
5.6.110.0050.04717.59
5.6.100.0020.04217.60
5.6.90.0050.02817.51
5.6.80.0060.02217.35
5.6.70.0040.00414.30
5.6.60.0040.00814.29
5.6.50.0040.01114.08
5.6.40.0030.00713.98
5.6.30.0000.01114.07
5.6.20.0060.00613.98
5.6.10.0040.00814.13
5.6.00.0060.00613.98
5.5.380.0060.01013.91
5.5.370.0090.00013.79
5.5.360.0060.00613.90
5.5.350.2110.02517.31
5.5.340.0060.02815.80
5.5.330.0040.02817.27
5.5.320.0260.04017.12
5.5.310.0190.03717.19
5.5.300.0050.04716.10
5.5.290.0000.03315.94
5.5.280.0050.02717.47
5.5.270.0070.04717.27
5.5.260.0100.04017.35
5.5.250.0050.04517.35
5.5.240.0050.03617.10
5.5.230.0060.00614.12
5.5.220.0090.00614.04
5.5.210.0070.01014.14
5.5.200.0060.00313.64
5.5.190.0000.00914.30
5.5.180.0090.00613.54
5.5.170.0060.00613.93
5.5.160.0070.00713.95
5.5.150.0060.00613.82
5.5.140.0030.00514.20
5.5.130.0080.00314.15
5.5.120.0030.00713.72
5.5.110.0000.01513.80
5.5.100.0070.00414.08
5.5.90.0000.01213.61
5.5.80.0100.00313.75
5.5.70.0060.00914.02
5.5.60.0030.00913.74
5.5.50.0100.00313.98
5.5.40.0060.00613.70
5.5.30.0030.00913.49
5.5.20.0030.00713.52
5.5.10.0040.00813.96
5.5.00.0090.00313.69

preferences:
61.46 ms | 401 KiB | 5 Q