3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected static function myProtected($test) { var_dump(__METHOD__, $test); } public static function __callStatic($method, $args) { switch($method) { case 'foo' : echo 'You have called foo()'; var_dump($args); break; case 'helloWorld': echo 'Hello ' . $args[0]; break; case 'myProtected': return call_user_func_array( array(get_called_class(), 'myProtected'), $args ); break; default: echo "doesn't exist, sorry"; break; } } } Test::notFound();

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.0040.01118.17
8.3.50.0120.00722.15
8.3.40.0070.00718.71
8.3.30.0110.00418.71
8.3.20.0040.00420.18
8.3.10.0040.00421.77
8.3.00.0080.00019.38
8.2.180.0110.00416.63
8.2.170.0180.00422.96
8.2.160.0000.01419.19
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0000.00722.31
8.2.120.0070.00026.35
8.2.110.0060.00321.10
8.2.100.0090.00318.05
8.2.90.0080.00019.13
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0030.00518.04
8.2.50.0040.00418.10
8.2.40.0060.00322.09
8.2.30.0040.00419.23
8.2.20.0060.00317.61
8.2.10.0050.00317.80
8.2.00.0040.00417.96
8.1.280.0000.01525.92
8.1.270.0070.00023.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00021.22
8.1.230.0080.00417.76
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0050.00518.52
8.1.160.0040.00422.00
8.1.150.0050.00318.70
8.1.140.0000.00719.50
8.1.130.0030.00517.49
8.1.120.0050.00317.41
8.1.110.0040.00417.29
8.1.100.0050.00317.22
8.1.90.0030.00517.30
8.1.80.0000.00717.19
8.1.70.0000.00717.32
8.1.60.0000.00717.41
8.1.50.0000.00817.47
8.1.40.0030.00817.48
8.1.30.0080.00017.52
8.1.20.0000.00717.62
8.1.10.0000.00817.56
8.1.00.0000.00717.33
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0070.00017.31
8.0.260.0060.00317.24
8.0.250.0070.00016.80
8.0.240.0090.00016.79
8.0.230.0030.00516.86
8.0.220.0040.00416.80
8.0.210.0030.00716.74
8.0.200.0040.00416.93
8.0.190.0000.00716.91
8.0.180.0000.00716.82
8.0.170.0040.00416.91
8.0.160.0070.00016.89
8.0.150.0080.00016.71
8.0.140.0040.00416.66
8.0.130.0030.00313.22
8.0.120.0050.00216.74
8.0.110.0000.00716.65
8.0.100.0000.00716.63
8.0.90.0000.00716.66
8.0.80.0070.00716.77
8.0.70.0000.00716.61
8.0.60.0050.00216.88
8.0.50.0070.00016.61
8.0.30.0100.00716.85
8.0.20.0100.01017.40
8.0.10.0030.00516.73
8.0.00.0160.00316.63
7.4.330.0020.00215.08
7.4.320.0030.00316.48
7.4.300.0080.00016.36
7.4.290.0000.00816.54
7.4.280.0030.00616.41
7.4.270.0000.00616.46
7.4.260.0000.00716.46
7.4.250.0080.00016.46
7.4.240.0070.00016.52
7.4.230.0000.00716.43
7.4.220.0060.01016.47
7.4.210.0030.01116.59
7.4.200.0050.00216.39
7.4.160.0040.01216.39
7.4.150.0150.00317.40
7.4.140.0120.00917.86
7.4.130.0100.00716.46
7.4.120.0140.00316.55
7.4.110.0160.01316.37
7.4.100.0130.00316.47
7.4.90.0070.01116.24
7.4.80.0110.00619.39
7.4.70.0070.01016.53
7.4.60.0150.00616.52
7.4.50.0060.00616.22
7.4.40.0100.00716.40
7.4.30.0100.00616.57
7.4.00.0070.00715.00
7.3.330.0050.00013.21
7.3.320.0000.00513.10
7.3.310.0030.00316.29
7.3.300.0030.00316.28
7.3.290.0040.01216.21
7.3.280.0090.00716.19
7.3.270.0090.00917.40
7.3.260.0100.00716.36
7.3.250.0110.00716.23
7.3.240.0090.00916.38
7.3.230.0110.00516.41
7.3.210.0100.00716.09
7.3.200.0190.00316.26
7.3.190.0040.01216.34
7.3.180.0070.01016.18
7.3.170.0060.01316.23
7.3.160.0080.00816.23
7.2.330.0100.00716.57
7.2.320.0080.00816.32
7.2.310.0090.00916.32
7.2.300.0080.00816.61
7.2.290.0120.00616.68
7.2.60.0030.00716.73
7.2.00.0070.01019.40
7.1.200.0090.00315.71
7.1.70.0000.00717.04
7.1.60.0030.01019.45
7.1.00.0030.07322.51
7.0.200.0000.01116.59
7.0.80.0230.06320.02
7.0.70.0130.06020.04
7.0.60.0170.05320.06
7.0.50.1830.06320.46
7.0.40.1130.06020.32
7.0.30.1300.06020.45
7.0.20.2300.07320.39
7.0.10.1270.05720.36
7.0.00.0130.06720.36
5.6.230.0070.07720.70
5.6.220.0230.04720.66
5.6.210.0100.06020.56
5.6.200.0130.06321.18
5.6.190.0100.06321.10
5.6.180.0130.06321.18
5.6.170.0100.06721.09
5.6.160.0230.06021.09
5.6.150.0170.06721.14
5.6.140.0070.09021.12
5.6.130.0270.07721.09
5.6.120.0100.08721.13
5.6.110.0170.08021.09
5.6.100.0170.05721.07
5.6.90.0230.06321.06
5.6.80.0200.05320.43
5.6.70.0100.06020.56
5.6.60.0100.06720.50
5.6.50.0130.05720.43
5.6.40.0170.05320.45
5.6.30.0100.05720.45
5.6.20.0130.05320.38
5.6.10.0170.05320.44
5.6.00.0200.05320.42

preferences:
63.01 ms | 401 KiB | 5 Q