3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function test() {echo __METHOD__ . "\n";} public static function testStatic() {echo __METHOD__ . "\n";} } class MyClass2 extends MyClass { public function test() {echo __METHOD__ . "\n"; call_user_func('parent::test'); } public static function testStatic() {echo __METHOD__ . "\n"; call_user_func('parent::testStatic'); call_user_func('static::testLate');} } class MyClass3 extends MyClass2 { public static function testLate() {echo __METHOD__ . "\n";} } echo "call object method:\n"; $o = new MyClass3(); $o->test(); $o->testStatic(); echo "call static method:\n"; MyClass3::testStatic();

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.40.0110.01118.80
8.3.30.0100.00719.27
8.3.20.0000.00720.21
8.3.10.0000.00823.57
8.3.00.0040.00419.13
8.2.170.0070.00722.96
8.2.160.0060.01220.52
8.2.150.0120.00324.18
8.2.140.0130.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.08
8.2.110.0100.00022.13
8.2.100.0030.00917.75
8.2.90.0090.00019.05
8.2.80.0030.00617.97
8.2.70.0060.00617.63
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0000.00819.95
8.2.30.0040.00418.07
8.2.20.0040.00417.68
8.2.10.0000.00718.05
8.2.00.0040.00417.63
8.1.270.0030.00622.00
8.1.260.0140.00426.35
8.1.250.0110.00428.09
8.1.240.0030.00723.97
8.1.230.0090.00317.48
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.22
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0050.00318.53
8.1.160.0000.00721.98
8.1.150.0000.00818.73
8.1.140.0000.00717.38
8.1.130.0000.00717.86
8.1.120.0040.00417.43
8.1.110.0040.00417.36
8.1.100.0000.00717.41
8.1.90.0000.00817.32
8.1.80.0090.00017.30
8.1.70.0040.00417.35
8.1.60.0050.00317.57
8.1.50.0030.00617.57
8.1.40.0040.00417.51
8.1.30.0050.00317.62
8.1.20.0000.00717.66
8.1.10.0080.00017.48
8.1.00.0000.00717.36
8.0.300.0070.00018.77
8.0.290.0050.00216.58
8.0.280.0000.00718.48
8.0.270.0030.00317.13
8.0.260.0030.00317.21
8.0.250.0030.00316.88
8.0.240.0060.00316.94
8.0.230.0070.00016.88
8.0.220.0000.00616.87
8.0.210.0030.00316.87
8.0.200.0000.00616.88
8.0.190.0080.00016.93
8.0.180.0000.00716.86
8.0.170.0040.00416.87
8.0.160.0000.00716.83
8.0.150.0040.00416.73
8.0.140.0000.00716.74
8.0.130.0030.00313.24
8.0.120.0040.00416.69
8.0.110.0040.00416.73
8.0.100.0040.00416.79
8.0.90.0020.00516.70
8.0.80.0030.01616.71
8.0.70.0040.00416.70
8.0.60.0030.00616.72
8.0.50.0040.00416.79
8.0.30.0110.01117.06
8.0.20.0100.00917.40
8.0.10.0000.00717.00
8.0.00.0120.00716.66
7.4.330.0020.00215.03
7.4.320.0000.00616.45
7.4.300.0000.00616.55
7.4.290.0040.00416.41
7.4.280.0030.00716.50
7.4.270.0030.00316.63
7.4.260.0070.00016.48
7.4.250.0040.00416.36
7.4.240.0020.00516.52
7.4.230.0030.00516.61
7.4.220.0180.00616.61
7.4.210.0030.01016.66
7.4.200.0030.00316.57
7.4.160.0100.00716.39
7.4.150.0170.00017.40
7.4.140.0130.00517.86
7.4.130.0060.01116.57
7.4.120.0100.01016.54
7.4.110.0090.00916.40
7.4.100.0090.01116.39
7.4.90.0130.00416.66
7.4.80.0060.01619.39
7.4.70.0060.00916.50
7.4.60.0090.00616.54
7.4.50.0070.00016.37
7.4.40.0060.01016.74
7.4.30.0080.00916.58
7.4.00.0120.00414.91
7.3.330.0000.00513.08
7.3.320.0060.00013.21
7.3.310.0040.00416.09
7.3.300.0000.00716.12
7.3.290.0070.01016.29
7.3.280.0060.00816.21
7.3.270.0110.00817.40
7.3.260.0110.00716.29
7.3.250.0080.00916.40
7.3.240.0140.00316.27
7.3.230.0070.01016.52
7.3.210.0080.00816.25
7.3.200.0130.00619.39
7.3.190.0100.00716.32
7.3.180.0060.00916.30
7.3.170.0070.01016.32
7.3.160.0030.01216.32
7.2.330.0140.00316.56
7.2.320.0110.00816.70
7.2.310.0180.00016.72
7.2.300.0120.00416.46
7.2.290.0160.00616.69
7.2.60.0090.00317.03
7.2.00.0060.00619.39
7.1.200.0060.00615.74
7.1.100.0070.00717.80
7.1.70.0030.00716.91
7.1.60.0030.02319.32
7.1.50.0120.00916.51
7.1.00.0070.07322.43
7.0.200.0030.00516.75
7.0.140.0030.07722.05
7.0.60.0070.08319.96
7.0.50.0070.08017.95
7.0.40.0130.06020.10
7.0.30.0130.05020.24
7.0.20.0270.08020.26
7.0.10.0270.07720.08
7.0.00.0070.05320.06
5.6.280.0000.10321.00
5.6.210.0000.07720.54
5.6.200.0070.08318.16
5.6.190.0100.03720.39
5.6.180.4000.04720.34
5.6.170.0200.05020.56
5.6.160.0030.04320.56
5.6.150.0070.03718.18
5.6.140.0070.08018.13
5.6.130.0170.07318.17
5.6.120.0070.08020.99
5.6.110.0030.06021.02
5.6.100.0030.04021.01
5.6.90.0130.06321.08
5.6.80.0070.07720.43
5.6.70.4530.04320.37
5.5.350.0270.07720.29
5.5.340.0070.08018.00
5.5.330.0100.04020.40
5.5.320.0270.07720.31
5.5.310.0400.04020.51
5.5.300.0070.04317.98
5.5.290.0130.07318.03
5.5.280.0100.05020.81
5.5.270.0130.07020.97
5.5.260.0130.07720.79
5.5.250.0100.07020.51
5.5.240.0100.08020.30
5.4.450.0030.04019.49
5.4.440.0730.05019.48
5.4.430.0670.05319.27
5.4.420.0670.00019.43
5.4.410.0700.00019.57
5.4.400.0770.00019.39
5.4.390.0670.00019.26
5.4.380.0630.00019.26
5.4.370.0800.00019.02
5.4.360.0600.00019.13
5.4.350.0630.00019.05
5.4.340.0070.03712.02
5.4.320.0090.03612.51
5.4.310.0050.03812.51
5.4.300.0090.03812.51
5.4.290.0070.03512.50
5.4.280.0050.03712.40
5.4.270.0040.03712.40
5.4.260.0050.04112.40
5.4.250.0090.04312.40
5.4.240.0040.04312.40
5.4.230.0040.03912.39
5.4.220.0060.03512.39
5.4.210.0060.03512.39
5.4.200.0060.03812.40
5.4.190.0050.03812.39
5.4.180.0030.03912.39
5.4.170.0080.03512.41
5.4.160.0080.03412.40
5.4.150.0090.03612.39
5.4.140.0050.03912.08
5.4.130.0030.03912.07
5.4.120.0050.03712.02
5.4.110.0060.03612.02
5.4.100.0050.03612.02
5.4.90.0040.03812.02
5.4.80.0090.03312.02
5.4.70.0070.03312.02
5.4.60.0040.03612.02
5.4.50.0040.03712.02
5.4.40.0090.03012.00
5.4.30.0070.03312.00
5.4.20.0070.03612.00
5.4.10.0060.03712.00
5.4.00.0010.03911.49
5.3.290.0090.03512.80
5.3.280.0030.03912.71
5.3.270.0090.03412.72
5.3.260.0050.03812.72
5.3.250.0060.03612.72
5.3.240.0070.04312.72
5.3.230.0080.03412.71
5.3.220.0070.04012.68
5.3.210.0030.04112.68
5.3.200.0040.03712.68
5.3.190.0040.04612.68
5.3.180.0060.04912.68
5.3.170.0030.04612.67
5.3.160.0060.03712.67
5.3.150.0060.04012.67
5.3.140.0070.03512.66
5.3.130.0050.04412.66
5.3.120.0100.03912.66
5.3.110.0040.04112.66
5.3.100.0070.03712.12
5.3.90.0050.04012.10
5.3.80.0070.03412.10
5.3.70.0020.03912.10
5.3.60.0070.03412.08
5.3.50.0110.03412.04
5.3.40.0020.03912.04
5.3.30.0050.04211.98
5.3.20.0090.03711.77
5.3.10.0040.03511.73
5.3.00.0070.03711.72
5.2.170.0090.0259.23
5.2.160.0050.0309.23
5.2.150.0040.0309.23
5.2.140.0060.0289.23
5.2.130.0080.0249.19
5.2.120.0070.0259.19
5.2.110.0050.0289.19
5.2.100.0070.0259.19
5.2.90.0060.0299.20
5.2.80.0010.0339.19
5.2.70.0080.0299.19
5.2.60.0030.0329.13
5.2.50.0090.0279.11
5.2.40.0050.0289.08
5.2.30.0080.0349.07
5.2.20.0070.0349.05
5.2.10.0070.0338.95
5.2.00.0060.0358.82
5.1.60.0070.0598.09
5.1.50.0040.0258.09
5.1.40.0070.0218.08
5.1.30.0050.0258.42
5.1.20.0050.0268.45
5.1.10.0030.0288.17
5.1.00.0020.0288.17
5.0.50.0020.0226.65
5.0.40.0030.0236.51
5.0.30.0040.0306.32
5.0.20.0040.0186.29
5.0.10.0020.0256.26
5.0.00.0050.0286.25
4.4.90.0040.0144.78
4.4.80.0040.0134.75
4.4.70.0040.0144.76
4.4.60.0010.0174.75
4.4.50.0010.0174.77
4.4.40.0050.0254.70
4.4.30.0030.0204.76
4.4.20.0030.0224.85
4.4.10.0030.0224.85
4.4.00.0060.0254.76
4.3.110.0010.0174.67
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0040.0224.59
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0020.0153.30
4.3.20.0020.0153.28
4.3.10.0040.0203.24
4.3.00.0000.02312.14

preferences:
29.12 ms | 400 KiB | 5 Q