3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected function test() {} } class B extends A { public function test2($x) { $x->test(); } } class C extends A { protected function test() {} } class D extends C { protected function test() { echo "Hello World!\n"; } } (new B)->test2(new D);

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.0090.00918.39
8.3.50.0120.00318.04
8.3.40.0140.00318.59
8.3.30.0140.00018.71
8.3.20.0000.00820.73
8.3.10.0000.00821.80
8.3.00.0050.00322.49
8.2.180.0140.00716.50
8.2.170.0110.01122.96
8.2.160.0040.01120.94
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0110.00719.64
8.2.110.0080.00322.11
8.2.100.0080.00417.59
8.2.90.0040.00420.55
8.2.80.0030.00617.97
8.2.70.0000.00818.04
8.2.60.0020.00518.03
8.2.50.0000.00918.10
8.2.40.0070.00019.34
8.2.30.0000.00719.18
8.2.20.0000.00717.79
8.2.10.0030.00619.13
8.2.00.0000.00718.12
8.1.280.0140.00725.92
8.1.270.0000.00720.38
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.42
8.1.230.0070.00420.92
8.1.220.0000.00817.74
8.1.210.0080.00018.86
8.1.200.0050.00317.23
8.1.190.0080.00016.97
8.1.180.0000.00918.10
8.1.170.0040.00418.55
8.1.160.0000.00718.70
8.1.150.0070.00018.70
8.1.140.0040.00417.23
8.1.130.0040.00420.22
8.1.120.0000.00717.22
8.1.110.0000.00717.35
8.1.100.0000.00717.18
8.1.90.0050.00317.33
8.1.80.0020.00517.29
8.1.70.0030.00317.23
8.1.60.0030.00617.52
8.1.50.0080.00317.36
8.1.40.0040.00417.34
8.1.30.0030.00617.50
8.1.20.0050.00317.48
8.1.10.0000.00717.58
8.1.00.0000.00717.38
8.0.300.0030.00519.88
8.0.290.0000.00816.75
8.0.280.0030.00318.50
8.0.270.0000.00716.82
8.0.260.0030.00318.37
8.0.250.0050.00216.85
8.0.240.0000.00716.85
8.0.230.0000.00816.89
8.0.220.0030.00316.66
8.0.210.0050.00216.70
8.0.200.0060.00016.81
8.0.190.0070.00016.77
8.0.180.0080.00016.83
8.0.170.0000.00916.82
8.0.160.0000.00716.80
8.0.150.0120.00016.74
8.0.140.0040.00416.70
8.0.130.0030.00313.21
8.0.120.0050.00316.75
8.0.110.0040.00416.67
8.0.100.0040.00416.73
8.0.90.0000.00816.68
8.0.80.0100.01016.75
8.0.70.0000.00816.65
8.0.60.0080.00016.63
8.0.50.0040.00416.55
8.0.30.0140.00317.23
8.0.20.0120.00617.06
8.0.10.0040.00416.72
8.0.00.0110.00816.61
7.4.330.0000.00616.70
7.4.320.0000.00616.48
7.4.300.0060.00016.55
7.4.290.0030.00316.44
7.4.280.0000.00816.53
7.4.270.0000.00616.46
7.4.260.0040.00416.50
7.4.250.0000.00716.43
7.4.240.0000.00816.40
7.4.230.0030.00316.64
7.4.220.0000.00716.42
7.4.210.0070.01116.62
7.4.200.0000.00716.52
7.4.160.0090.00716.40
7.4.140.0120.01017.86
7.4.130.0090.00916.36
7.4.120.0050.01116.38
7.4.110.0060.01016.44
7.4.100.0030.01516.44
7.4.90.0060.01216.36
7.4.80.0060.01019.39
7.4.70.0080.00816.32
7.4.60.0080.00816.41
7.4.50.0060.00316.21
7.4.40.0060.00916.36
7.4.00.0090.00815.09
7.3.330.0000.00613.10
7.3.320.0000.00513.16
7.3.310.0070.00016.34
7.3.300.0070.00016.25
7.3.290.0000.00716.05
7.3.280.0120.00316.24
7.3.260.0100.00816.37
7.3.240.0100.00916.37
7.3.230.0080.00816.40
7.3.210.0030.01516.54
7.3.200.0060.00916.34
7.3.190.0060.01216.19
7.3.180.0100.00716.16
7.3.170.0030.01416.48
7.3.160.0100.00716.25
7.3.120.0070.01014.50
7.3.110.0070.01114.97
7.3.100.0040.00814.75
7.3.90.0120.00414.89
7.3.80.0100.00314.82
7.3.70.0080.00814.81
7.3.60.0050.00514.84
7.3.50.0070.01014.46
7.3.40.0060.00614.77
7.3.30.0070.00514.59
7.3.20.0400.00515.52
7.3.10.0240.00415.73
7.3.00.0260.01115.67
7.2.330.0100.00716.53
7.2.320.0110.01116.61
7.2.310.0100.00716.60
7.2.300.0060.01216.49
7.2.290.0120.00816.66
7.2.250.0030.01614.88
7.2.240.0070.01314.78
7.2.230.0060.00915.10
7.2.220.0030.01015.11
7.2.210.0000.00914.93
7.2.200.0060.00914.97
7.2.190.0060.00615.08
7.2.180.0060.00914.88
7.2.170.0030.01314.73
7.2.160.0040.01814.65
7.2.150.0410.00714.77
7.2.140.0410.00715.06
7.2.130.0470.00614.99
7.2.120.0510.01014.92
7.2.110.0470.01015.05
7.2.100.0510.00015.18
7.2.90.0570.00314.81
7.2.80.0410.01415.00
7.2.70.0620.01315.21
7.2.60.0440.00715.15
7.2.50.1210.01014.89
7.2.40.0440.00314.95
7.2.30.0440.00714.90
7.2.20.0400.00714.91
7.2.10.0720.00814.95
7.2.00.0550.00715.02
7.1.330.0070.00715.66
7.1.320.0060.00615.68
7.1.310.0030.00615.43
7.1.300.0060.01015.79
7.1.290.0030.01115.69
7.1.280.0070.00715.57
7.1.270.0240.00914.76
7.1.260.0230.00714.56
7.1.250.0470.00014.03

preferences:
59.01 ms | 401 KiB | 5 Q