3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { // PHP overloading public function __call($name, $arguments) { call_user_func_array(array($this, "_{$name}"), $arguments); } public static function __callStatic($name, $arguments) { call_user_func_array(get_class() . "::_static_{$name}", $arguments); } // The real function private function _test() { print "in _test();\n"; } private static function _static_test() { print "in _static_test();\n"; } } $a = new A; $a->test(); A::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.70.0200.00016.58
8.3.60.0130.00618.56
8.3.50.0120.00422.02
8.3.40.0090.00618.79
8.3.30.0070.00719.17
8.3.20.0080.00020.41
8.3.10.0000.00821.92
8.3.00.0040.00422.44
8.2.180.0070.00718.55
8.2.170.0140.00722.96
8.2.160.0110.00620.95
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.48
8.2.110.0030.00622.16
8.2.100.0080.00319.64
8.2.90.0000.00919.36
8.2.80.0040.00419.65
8.2.70.0030.00517.63
8.2.60.0110.00717.67
8.2.50.0030.00518.07
8.2.40.0080.00018.09
8.2.30.0060.00618.16
8.2.20.0000.00817.65
8.2.10.0000.00819.47
8.2.00.0050.00317.73
8.1.280.0120.00325.92
8.1.270.0080.00022.14
8.1.260.0050.00326.35
8.1.250.0100.00728.09
8.1.240.0000.00923.95
8.1.230.0070.00319.14
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0080.00017.43
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0040.00422.01
8.1.150.0030.00618.53
8.1.140.0060.00317.43
8.1.130.0040.00417.73
8.1.120.0070.00017.52
8.1.110.0070.00017.38
8.1.100.0040.00417.32
8.1.90.0000.00917.42
8.1.80.0000.00817.34
8.1.70.0030.00317.43
8.1.60.0080.00017.48
8.1.50.0030.00617.43
8.1.40.0000.00817.40
8.1.30.0000.00717.69
8.1.20.0060.00317.55
8.1.10.0000.00917.46
8.1.00.0040.00417.35
8.0.300.0000.00718.77
8.0.290.0040.00417.28
8.0.280.0000.00718.44
8.0.270.0000.00717.19
8.0.260.0000.00816.81
8.0.250.0000.00716.84
8.0.240.0000.00716.95
8.0.230.0000.00716.83
8.0.220.0040.00416.78
8.0.210.0000.00716.76
8.0.200.0080.00016.91
8.0.190.0080.00016.99
8.0.180.0070.00016.94
8.0.170.0040.00416.81
8.0.160.0040.00416.81
8.0.150.0000.00716.82
8.0.140.0040.00416.73
8.0.130.0000.00613.31
8.0.120.0000.00816.75
8.0.110.0040.00416.84
8.0.100.0070.00016.90
8.0.90.0070.00016.93
8.0.80.0040.01016.93
8.0.70.0040.00416.76
8.0.60.0070.00016.95
8.0.50.0040.00416.81
8.0.30.0110.00817.23
8.0.20.0090.00917.41
8.0.10.0000.00716.88
8.0.00.0070.01016.84
7.4.330.0020.00215.00
7.4.320.0070.00016.60
7.4.300.0030.00316.52
7.4.290.0000.00716.61
7.4.280.0040.00416.55
7.4.270.0000.00616.52
7.4.260.0040.00416.51
7.4.250.0000.00716.54
7.4.240.0020.00616.49
7.4.230.0030.00316.72
7.4.220.0030.01616.64
7.4.210.0070.00916.55
7.4.200.0030.00516.63
7.4.190.0070.00016.68
7.4.160.0130.00316.48
7.4.150.0120.00617.40
7.4.140.0100.01217.86
7.4.130.0090.00816.45
7.4.120.0120.00716.46
7.4.110.0150.00616.27
7.4.100.0140.00316.45
7.4.90.0180.02216.39
7.4.80.0030.01419.39
7.4.70.0100.00716.49
7.4.60.0080.00816.48
7.4.50.0070.00016.47
7.4.40.0030.00722.77
7.4.30.0140.00316.48
7.4.00.0090.00315.18
7.3.330.0000.00513.20
7.3.320.0000.00713.24
7.3.310.0040.00416.19
7.3.300.0030.00316.36
7.3.290.0080.00816.27
7.3.280.0060.01016.40
7.3.270.0140.00317.40
7.3.260.0120.01216.73
7.3.250.0100.00916.49
7.3.240.0120.00916.35
7.3.230.0130.01016.39
7.3.210.0110.01116.43
7.3.200.0170.00719.39
7.3.190.0060.01216.57
7.3.180.0120.00316.71
7.3.170.0060.00916.46
7.3.160.0130.00316.48
7.3.120.0090.00614.83
7.2.330.0110.00716.85
7.2.320.0060.01316.52
7.2.310.0150.00716.63
7.2.300.0030.01316.57
7.2.290.0090.00616.48
7.2.00.0060.00919.61
7.1.200.0120.00315.63
7.1.100.0030.01018.12
7.1.70.0100.00517.09
7.1.60.0070.01819.82
7.1.50.0130.00617.09
7.1.00.0130.06722.51
7.0.200.0070.00316.79
7.0.140.0030.07322.12
7.0.60.0030.08321.84
7.0.50.0200.06318.02
7.0.40.0070.09020.10
7.0.30.0230.05720.24
7.0.20.0330.07720.07
7.0.10.0070.08320.24
7.0.00.0070.06720.22
5.6.280.0000.07721.00
5.6.210.0030.06320.57
5.6.200.0100.07318.20
5.6.190.0030.08320.67
5.6.180.0330.04320.64
5.6.170.0170.04020.57
5.6.160.0170.07020.57
5.6.150.0070.08018.16
5.6.140.0130.07718.19
5.6.130.0070.06718.28
5.6.120.0000.04321.02
5.6.110.0200.06021.14
5.6.100.0170.05720.89
5.6.90.0070.08721.06
5.6.80.0030.04720.29
5.5.350.0270.04020.34
5.5.340.0070.07718.08
5.5.330.0030.04020.26
5.5.320.0600.06720.30
5.5.310.0230.07720.30
5.5.300.0070.08017.96
5.5.290.0030.05317.98
5.5.280.0030.06020.88
5.5.270.0070.07020.98
5.5.260.0070.05720.73
5.5.250.0130.08320.68
5.5.240.0070.07320.35
5.4.450.3500.04319.28
5.4.440.0100.06719.30
5.4.430.4170.03719.29
5.4.420.4130.03719.41
5.4.410.4500.04019.42
5.4.400.4530.04019.21
5.4.390.4170.02319.27
5.4.380.4370.04019.20
5.4.370.3800.03718.99
5.4.360.4430.03719.20
5.4.350.3870.04318.99
5.4.340.5530.03019.07
5.4.320.4600.03719.17
5.4.310.4730.04719.09
5.4.300.3530.04018.95
5.4.290.4470.03319.23
5.4.280.4600.02718.97
5.4.270.4270.03018.97
5.4.260.4500.04019.09
5.4.250.4170.05019.12
5.4.240.4100.03319.14
5.4.230.3670.04018.97
5.4.220.3430.04719.19
5.4.210.3900.03719.20
5.4.200.3530.04019.04
5.4.190.4000.03319.03
5.4.180.4470.03719.25
5.4.170.4570.03719.25
5.4.160.4070.03719.14
5.4.150.4070.03019.13
5.4.140.3600.03716.45
5.4.130.3630.02716.41
5.4.120.3570.03316.38
5.4.110.3570.03316.22
5.4.100.3630.03316.33
5.4.90.3630.03016.51
5.4.80.3570.03316.50
5.4.70.3930.03016.34
5.4.60.3830.03716.23
5.4.50.4030.03016.45
5.4.40.3730.03716.42
5.4.30.4070.04716.38
5.4.20.3800.03716.19
5.4.10.3900.02716.45
5.4.00.3900.03015.83
5.3.290.4500.04314.73
5.3.280.3330.04314.64
5.3.270.4570.03714.61
5.3.260.4470.03714.63
5.3.250.3600.03014.61
5.3.240.3330.03014.77
5.3.230.3670.03014.69
5.3.220.3770.03714.63
5.3.210.3600.03714.63
5.3.200.3630.03314.71
5.3.190.3670.03314.57
5.3.180.3570.03714.57
5.3.170.3530.03714.62
5.3.160.3470.03714.73
5.3.150.3700.03314.60
5.3.140.3930.03714.62
5.3.130.3800.03714.55
5.3.120.4030.04014.71
5.3.110.3930.04714.55
5.3.100.3630.04014.07
5.3.90.3400.02714.05
5.3.80.3930.03014.18
5.3.70.4170.03313.97
5.3.60.3600.03714.03
5.3.50.4100.03013.96
5.3.40.4470.03313.95
5.3.30.4370.04013.84
5.3.20.4530.03713.77
5.3.10.3770.04013.66
5.3.00.3500.03713.80
5.2.170.3530.02711.16
5.2.160.3030.03011.21
5.2.150.3570.03711.08
5.2.140.3800.03011.22
5.2.130.3930.03011.27
5.2.120.3370.03711.08
5.2.110.2970.02311.18
5.2.100.3430.02311.07
5.2.90.3600.03011.07
5.2.80.3270.03011.14
5.2.70.3200.03311.03
5.2.60.3370.03011.11
5.2.50.3470.03011.03
5.2.40.3230.02711.00
5.2.30.2700.03010.90
5.2.20.2570.02711.01
5.2.10.2470.03010.86
5.2.00.2400.03010.79
5.1.60.2570.03010.06
5.1.50.0770.02710.14
5.1.40.0070.02710.00
5.1.30.0030.03310.50
5.1.20.0070.04010.41
5.1.10.1400.03710.09
5.1.00.2870.03010.14
5.0.50.1800.0238.46
5.0.40.1630.0208.48
5.0.30.1830.0338.21
5.0.20.1830.0208.19
5.0.10.1830.0208.16
5.0.00.1770.0338.13
4.4.90.1430.0205.84
4.4.80.1630.0105.84
4.4.70.1530.0175.84
4.4.60.1470.0205.88
4.4.50.1400.0105.86
4.4.40.1570.0275.95
4.4.30.0000.0235.87
4.4.20.0070.0175.86
4.4.10.1700.0175.93
4.4.00.1870.0275.84
4.3.110.1670.0235.84
4.3.100.1800.0135.84
4.3.90.1530.0135.84
4.3.80.1800.0235.84
4.3.70.1770.0135.84
4.3.60.1570.0135.84
4.3.50.1570.0135.84
4.3.40.1700.0205.84
4.3.30.0870.0235.84
4.3.20.0870.0175.84
4.3.10.0770.0175.84
4.3.00.0730.0175.84

preferences:
85.82 ms | 401 KiB | 5 Q