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 { 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 { 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.0100.01018.97
8.3.30.0030.01419.04
8.3.20.0000.00720.34
8.3.10.0000.00823.48
8.3.00.0050.00319.38
8.2.170.0110.00422.96
8.2.160.0090.00619.13
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00322.12
8.2.110.0040.00420.35
8.2.100.0120.00617.75
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0030.00917.49
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0040.00419.88
8.2.30.0000.00817.96
8.2.20.0040.00417.70
8.2.10.0040.00417.88
8.2.00.0040.00417.55
8.1.270.0030.00522.00
8.1.260.0100.00726.35
8.1.250.0150.00028.09
8.1.240.0000.00923.84
8.1.230.0080.00417.42
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.10
8.1.190.0030.00517.13
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00421.94
8.1.150.0040.00418.74
8.1.140.0000.00817.35
8.1.130.0070.00017.84
8.1.120.0000.00717.38
8.1.110.0040.00417.32
8.1.100.0000.00717.30
8.1.90.0040.00417.28
8.1.80.0060.00317.46
8.1.70.0000.00717.34
8.1.60.0030.00517.47
8.1.50.0000.00717.56
8.1.40.0000.00817.43
8.1.30.0040.00417.62
8.1.20.0000.00817.60
8.1.10.0060.00317.45
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0000.00817.16
8.0.260.0040.00417.31
8.0.250.0040.00416.95
8.0.240.0050.00316.89
8.0.230.0030.00316.95
8.0.220.0000.00616.96
8.0.210.0040.00416.90
8.0.200.0030.00316.85
8.0.190.0040.00416.98
8.0.180.0050.00216.98
8.0.170.0040.00416.95
8.0.160.0000.00716.89
8.0.150.0000.00816.80
8.0.140.0000.00716.75
8.0.130.0030.00313.29
8.0.120.0020.00516.77
8.0.110.0040.00416.86
8.0.100.0050.00316.96
8.0.90.0040.00416.92
8.0.80.0110.00716.78
8.0.70.0040.00416.87
8.0.60.0040.00416.84
8.0.50.0040.00416.80
8.0.30.0080.01316.86
8.0.20.0110.00917.40
8.0.10.0000.00717.09
8.0.00.0060.01216.73
7.4.330.0050.00015.01
7.4.320.0030.00316.36
7.4.300.0030.00316.49
7.4.290.0000.00716.61
7.4.280.0000.00916.50
7.4.270.0040.00416.43
7.4.260.0040.00416.59
7.4.250.0030.00316.59
7.4.240.0050.00316.52
7.4.230.0000.00816.51
7.4.220.0090.00916.64
7.4.210.0030.01616.71
7.4.200.0000.00716.58
7.4.160.0100.00616.69
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0070.01216.38
7.4.120.0130.00716.51
7.4.110.0130.00416.55
7.4.100.0100.00716.59
7.4.90.0070.01016.63
7.4.80.0100.00719.39
7.4.70.0110.00416.50
7.4.60.0090.00616.52
7.4.50.0030.00316.73
7.4.40.0070.01016.48
7.4.30.0130.00316.42
7.4.00.0030.00715.16
7.3.330.0000.00513.17
7.3.320.0050.00013.31
7.3.310.0000.00816.30
7.3.300.0070.00016.32
7.3.290.0080.01116.30
7.3.280.0110.00516.33
7.3.270.0110.00617.40
7.3.260.0070.01016.26
7.3.250.0020.01516.22
7.3.240.0100.00716.31
7.3.230.0150.00316.58
7.3.210.0030.01316.25
7.3.200.0060.01019.39
7.3.190.0140.00716.66
7.3.180.0030.01216.16
7.3.170.0110.00716.53
7.3.160.0090.00616.38
7.2.330.0030.01416.35
7.2.320.0140.00416.61
7.2.310.0070.01016.46
7.2.300.0080.00816.61
7.2.290.0030.01416.63
7.2.60.0060.00616.89
7.2.00.0030.00919.43
7.1.200.0160.00015.48
7.1.100.0080.00417.71
7.1.70.0070.00717.14
7.1.60.0110.01419.32
7.1.50.0130.01016.69
7.1.00.0000.07722.43
7.0.200.0000.00716.54
7.0.140.0000.07322.21
7.0.60.0130.04720.02
7.0.50.0200.05017.84
7.0.40.0030.04720.15
7.0.30.0230.03720.15
7.0.20.0230.04020.23
7.0.10.0130.08320.10
7.0.00.0100.08720.07
5.6.280.0070.07320.91
5.6.210.0070.06720.49
5.6.200.0100.08018.29
5.6.190.0030.05020.46
5.6.180.0130.04320.42
5.6.170.0530.06720.55
5.6.160.0070.08320.50
5.6.150.0030.04318.16
5.6.140.0070.08018.21
5.6.130.0130.07318.11
5.6.120.0070.08320.90
5.6.110.0070.06020.98
5.6.100.0100.08020.98
5.6.90.0030.08320.99
5.6.80.0030.06720.38
5.5.350.0100.05020.38
5.5.340.0070.08318.00
5.5.330.0070.07720.42
5.5.320.0430.06320.42
5.5.310.0470.06320.27
5.5.300.0030.04018.04
5.5.290.0070.08717.97
5.5.280.0070.07020.90
5.5.270.0030.09020.89
5.5.260.0170.03720.75
5.5.250.0030.08320.59
5.5.240.0070.03720.27
5.4.450.0030.06019.18
5.4.440.0030.04019.55
5.4.430.0100.07719.41
5.4.420.0030.08019.31
5.4.410.0070.07719.07
5.4.400.0070.05019.10
5.4.390.0000.05318.87
5.4.380.0070.07319.22
5.4.370.0030.04718.98
5.4.360.0030.07319.00
5.4.350.0000.07019.31
5.4.340.0070.04319.31
5.4.320.0070.07318.94
5.4.310.0100.06019.13
5.4.300.0030.04319.06
5.4.290.0100.05019.08
5.4.280.0070.05019.06
5.4.270.0070.06318.98
5.4.260.0070.04718.84
5.4.250.0070.07719.29
5.4.240.0000.06018.86
5.4.230.0000.04318.81
5.4.220.0000.04319.07
5.4.210.0030.07718.87
5.4.200.0030.06719.34
5.4.190.0030.07719.15
5.4.180.0030.06719.13
5.4.170.0030.06319.12
5.4.160.0100.06319.14
5.4.150.0000.08019.14
5.4.140.0200.04016.57
5.4.130.0070.06316.34
5.4.120.0070.05716.55
5.4.110.0030.07316.24
5.4.100.0070.06316.40
5.4.90.0000.07016.24
5.4.80.0070.06316.44
5.4.70.0000.07316.48
5.4.60.0070.04716.43
5.4.50.0030.07716.55
5.4.40.0030.06316.43
5.4.30.0070.05016.42
5.4.20.0070.07016.16
5.4.10.0000.07716.43
5.4.00.0030.06015.90
5.3.290.0070.07314.89
5.3.280.0030.07714.60
5.3.270.0030.07014.70
5.3.260.0100.05714.58
5.3.250.0030.04314.53
5.3.240.0030.07714.57
5.3.230.0030.05014.51
5.3.220.0030.04314.61
5.3.210.0070.04314.59
5.3.200.0070.07014.54
5.3.190.0100.05314.55
5.3.180.0030.07314.54
5.3.170.0030.05014.58
5.3.160.0030.07314.59
5.3.150.0030.06014.72
5.3.140.0000.04714.78
5.3.130.0000.08014.55
5.3.120.0070.07714.63
5.3.110.0030.07714.63
5.3.100.0030.07014.04
5.3.90.0100.06314.11
5.3.80.0070.06714.04
5.3.70.0070.06713.93
5.3.60.0070.07014.01
5.3.50.0070.07313.89
5.3.40.0030.04713.96
5.3.30.0030.04713.82
5.3.20.0000.06313.77
5.3.10.0000.04313.59
5.3.00.0030.04313.66
5.2.170.0030.06312.07
5.2.160.0030.05012.07
5.2.150.0100.05712.07
5.2.140.0030.03312.07
5.2.130.0000.04712.07
5.2.120.0000.03712.07
5.2.110.0000.04312.07
5.2.100.0070.05712.07
5.2.90.0070.03312.07
5.2.80.0070.05712.07
5.2.70.0000.03712.07
5.2.60.0030.04712.07
5.2.50.0000.06712.07
5.2.40.0000.04012.07
5.2.30.0000.04312.07
5.2.20.0100.05312.07
5.2.10.0030.05312.07
5.2.00.0000.06012.07
5.1.60.0030.05012.07
5.1.50.0030.04012.07
5.1.40.0000.05012.07
5.1.30.0030.05712.07
5.1.20.0030.05312.07
5.1.10.0030.04312.07
5.1.00.0030.05712.07
5.0.50.0030.04712.07
5.0.40.0030.02712.07
5.0.30.0030.04012.07
5.0.20.0030.03712.07
5.0.10.0000.03312.07
5.0.00.0030.05012.07
4.4.90.0000.03712.07
4.4.80.0000.03012.07
4.4.70.0000.02312.07
4.4.60.0000.03312.07
4.4.50.0000.02012.07
4.4.40.0000.04712.07
4.4.30.0030.03712.07
4.4.20.0000.03312.07
4.4.10.0030.03312.07
4.4.00.0000.04712.07
4.3.110.0000.02312.07
4.3.100.0030.02312.07
4.3.90.0000.03712.07
4.3.80.0000.05712.07
4.3.70.0030.03012.07
4.3.60.0000.03712.07
4.3.50.0030.03312.07
4.3.40.0000.05012.07
4.3.30.0030.03312.07
4.3.20.0000.03312.07
4.3.10.0030.03312.07
4.3.00.0000.02312.07

preferences:
43.67 ms | 400 KiB | 5 Q