3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62330 class A { public function __call($name, $args) { echo "NO\n"; } public static function __callStatic($name, $args) { echo "YES\n"; } } class B extends A { public function test() { forward_static_call(array('parent', 'test')); call_user_func(array('A', 'test')); A::test(); static::test(); } } class C { public function test() { A::test(); } } A::test(); $b = new B(); $b->test(); $c = new C(); $c->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.0140.01016.50
8.3.50.0370.01116.59
8.3.40.0200.00818.85
8.3.30.0290.00418.67
8.3.20.0000.01518.90
8.3.10.0120.00418.73
8.3.00.0160.00319.38
8.2.180.0140.00716.59
8.2.170.0180.01222.96
8.2.160.0180.00018.96
8.2.150.0070.00724.18
8.2.140.0100.00524.66
8.2.130.0110.00626.16
8.2.120.0090.00620.75
8.2.110.0220.00620.91
8.2.100.0130.00617.93
8.2.90.0080.00419.17
8.2.80.0050.00517.97
8.2.70.0060.00317.50
8.2.60.0120.00417.80
8.2.50.0030.01018.10
8.2.40.0070.00318.16
8.2.30.0070.00717.79
8.2.20.0050.00817.72
8.2.10.0080.00817.75
8.2.00.0070.00417.63
8.1.280.0250.01325.92
8.1.270.0170.02723.99
8.1.260.0280.00726.35
8.1.250.0100.01028.09
8.1.240.0170.00723.97
8.1.230.0130.01717.71
8.1.220.0110.00418.02
8.1.210.0080.00818.77
8.1.200.0140.01017.72
8.1.190.0040.01117.72
8.1.180.0100.00618.10
8.1.170.0070.00719.02
8.1.160.0100.00319.54
8.1.150.0070.01019.14
8.1.140.0110.00417.95
8.1.130.0070.00718.34
8.1.120.0060.00917.86
8.1.110.0070.00718.00
8.1.100.0110.00418.03
8.1.90.0040.01117.93
8.1.80.0120.00318.04
8.1.70.0030.01017.91
8.1.60.0060.00918.20
8.1.50.0090.00618.00
8.1.40.0060.00918.04
8.1.30.0000.01418.16
8.1.20.0100.01018.19
8.1.10.0040.01118.17
8.1.00.0060.00918.08
8.0.300.0070.00718.77
8.0.290.0140.00017.00
8.0.280.0030.01018.80
8.0.270.0070.00717.70
8.0.260.0120.00417.27
8.0.250.0090.00617.26
8.0.240.0000.01517.26
8.0.230.0000.01317.27
8.0.220.0030.01017.19
8.0.210.0050.00817.24
8.0.200.0110.01117.77
8.0.190.0160.00317.34
8.0.180.0080.00617.30
8.0.170.0070.00717.15
8.0.160.0090.00617.32
8.0.150.0120.00317.17
8.0.140.0070.00717.17
8.0.130.0100.00313.74
8.0.120.0100.00717.23
8.0.110.0140.00317.11
8.0.100.0090.00617.02
8.0.90.0100.00317.16
8.0.80.0130.03417.24
8.0.70.0070.01418.07
8.0.60.0070.00717.28
8.0.50.0090.00617.21
8.0.30.0270.02717.23
8.0.20.0490.02617.38
8.0.10.0110.00417.39
8.0.00.0660.04517.18
7.4.330.0100.00313.39
7.4.320.0080.00416.84
7.4.300.0070.00716.96
7.4.290.0030.01917.41
7.4.280.0090.00616.86
7.4.270.0000.01516.80
7.4.260.0090.00613.71
7.4.250.0070.00716.94
7.4.240.0070.00716.82
7.4.230.0060.00616.93
7.4.220.0220.04916.93
7.4.210.0160.02916.94
7.4.200.0040.01116.95
7.4.190.0030.00916.84
7.4.160.0550.02916.97
7.4.150.0710.03716.93
7.4.140.0910.03817.01
7.4.130.0330.04516.90
7.4.120.0360.02617.04
7.4.110.0510.03116.77
7.4.100.0680.04517.00
7.4.90.0410.02017.10
7.4.80.0470.04119.39
7.4.70.0170.04516.98
7.4.60.0200.03316.83
7.4.50.1160.00016.97
7.4.40.0160.01116.88
7.4.30.0340.03517.10
7.3.330.0100.00713.53
7.3.320.0000.01213.59
7.3.310.0060.01016.66
7.3.300.0060.00616.62
7.3.290.0160.02916.65
7.3.280.0340.03216.64
7.3.270.0500.03016.67
7.3.260.0380.02516.86
7.3.250.0510.02816.92
7.3.240.0610.03816.74
7.3.230.0380.03216.88
7.3.210.0310.05216.80
7.3.200.0280.03616.66
7.3.190.0490.03416.64
7.3.180.0150.03416.77
7.3.170.0460.03616.86
7.3.160.0270.03716.59
7.2.330.0490.01317.06
7.2.320.0120.05217.01
7.2.310.0450.03317.13
7.2.300.0400.02216.84
7.2.290.0350.02917.04
7.2.100.0800.01215.05
7.2.90.1280.02314.91
7.2.80.1270.02315.09
7.2.70.1130.03115.45
7.2.60.1030.03515.34
7.2.50.1110.01014.97
7.2.40.0970.03515.34
7.2.30.1350.02014.70
7.2.20.0570.02315.64
7.2.10.1080.01915.34
7.2.00.0970.01314.98
7.1.220.1300.02614.26
7.1.210.1460.02614.24
7.1.200.1270.02114.31
7.1.190.1550.02714.55
7.1.180.1060.01714.23
7.1.170.1080.02514.09
7.1.160.1050.02214.00
7.1.150.1210.02314.62
7.1.140.1180.02214.50
7.1.130.0940.01014.41
7.1.120.1220.03414.61
7.1.110.1360.03615.23
7.1.100.1300.02014.44
7.1.90.1740.01914.16
7.1.80.0820.02414.13
7.1.70.0930.01314.39
7.1.60.0700.02432.59
7.1.50.1060.02132.27
7.1.40.0950.03432.29
7.1.30.1300.03832.36
7.1.20.0680.01732.45
7.1.10.0420.01814.19
7.1.00.1040.02114.33
7.0.310.1860.01313.97
7.0.300.1230.02914.14
7.0.290.0760.02114.05
7.0.280.1160.01613.95
7.0.270.0950.02113.83
7.0.260.0900.02314.03
7.0.250.0890.02314.27
7.0.240.1080.01713.79
7.0.230.0750.02714.06
7.0.220.1130.02614.20
7.0.210.0960.03214.87
7.0.200.1250.02913.95
7.0.190.1110.01313.90
7.0.180.0490.00714.02
7.0.170.0530.02514.45
7.0.160.1050.01713.88
7.0.150.0820.02114.03
7.0.140.1220.01714.07
7.0.130.0810.02213.88
7.0.120.1060.02414.08
7.0.110.0540.02514.29
7.0.100.1030.02013.98
7.0.90.1090.01013.97
7.0.80.1060.02614.18
7.0.70.0700.02314.01
7.0.60.1450.01914.10
7.0.50.1430.01714.19
7.0.40.1660.02314.26
7.0.30.1340.01313.98
7.0.20.0650.01113.75
7.0.10.1260.01013.80
7.0.00.0400.00513.62
5.6.380.0390.03416.02
5.6.370.0290.02915.82
5.6.360.0310.01515.65
5.6.350.0610.07517.87
5.6.340.0360.03215.06
5.6.330.0330.03615.50
5.6.320.0380.03015.73
5.6.310.0570.01215.50
5.6.300.0210.03215.67
5.6.290.0340.02515.73
5.6.280.0360.03015.76
5.6.270.0270.02415.55
5.6.260.0330.03615.59
5.6.250.0310.03715.88
5.6.240.0290.03215.63
5.6.230.0340.02715.84
5.6.220.0380.03315.77
5.6.210.0400.03315.60
5.6.200.0250.04115.62
5.6.190.0290.03715.49
5.6.180.0230.03415.68
5.6.170.0310.03415.66
5.6.160.0350.03515.79
5.6.150.0240.04315.92
5.6.140.0320.03315.64
5.6.130.0310.03115.57
5.6.120.0300.03316.09
5.6.110.0390.03315.74
5.6.100.0360.03616.32
5.6.90.0360.03615.63
5.6.80.0270.02415.60
5.6.70.0240.03915.46
5.6.60.0390.02615.50
5.5.380.0310.02212.63
5.5.370.0370.02412.63
5.5.360.0380.03512.63
5.5.350.0320.06212.90
5.5.340.0440.03712.93
5.5.330.0330.02312.91
5.5.320.0620.03113.70
5.5.310.0340.02812.75
5.5.300.0300.03712.63
5.5.290.0390.02512.63
5.5.280.0330.04113.24
5.5.270.0310.02812.63
5.5.260.0370.02313.03
5.5.250.0350.03012.63
5.5.240.0340.02712.63
5.5.230.0280.02312.63
5.5.220.0490.01212.63
5.4.450.0340.03012.79
5.4.440.0260.04012.63
5.4.430.0440.01912.63
5.4.420.0290.02912.63
5.4.410.0250.02812.63
5.4.400.0240.02412.63
5.4.390.0420.03712.63

preferences:
44.23 ms | 401 KiB | 5 Q