3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function test($a, $b, $c) { var_dump(call_user_func('func_get_args')); var_dump(call_user_func('get_defined_vars')); } test(1, 2, 3); } namespace { function test($a, $b, $c) { var_dump(call_user_func('func_get_args')); var_dump(call_user_func('get_defined_vars')); } test(1, 2, 3); }

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.0040.01118.84
8.3.30.0070.00718.78
8.3.20.0000.00720.52
8.3.10.0070.00021.69
8.3.00.0000.00721.76
8.2.170.0120.00322.96
8.2.160.0130.00020.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00420.94
8.2.120.0070.00026.35
8.2.110.0100.00022.26
8.2.100.0060.00617.77
8.2.90.0000.00819.25
8.2.80.0060.00317.97
8.2.70.0040.00417.59
8.2.60.0060.00617.68
8.2.50.0060.00618.09
8.2.40.0040.00422.09
8.2.30.0050.00219.26
8.2.20.0040.00417.58
8.2.10.0000.00717.88
8.2.00.0030.00518.01
8.1.270.0090.00921.98
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0060.00322.04
8.1.230.0070.00419.36
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0040.00917.13
8.1.190.0000.00917.10
8.1.180.0030.00618.10
8.1.170.0100.00318.14
8.1.160.0000.00820.64
8.1.150.0040.00418.95
8.1.140.0040.00419.34
8.1.130.0000.00717.58
8.1.120.0040.00417.39
8.1.110.0040.00417.24
8.1.100.0000.00817.36
8.1.90.0040.00417.40
8.1.80.0000.00717.39
8.1.70.0040.00417.34
8.1.60.0050.00317.56
8.1.50.0030.00617.37
8.1.40.0000.00717.35
8.1.30.0080.00017.57
8.1.20.0000.00717.55
8.1.10.0040.00417.45
8.1.00.0070.00017.48
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0000.00717.12
8.0.260.0040.00417.15
8.0.250.0070.00016.89
8.0.240.0020.00516.98
8.0.230.0000.00716.87
8.0.220.0070.00016.78
8.0.210.0080.00016.89
8.0.200.0030.00316.88
8.0.190.0030.00616.96
8.0.180.0050.00316.83
8.0.170.0080.00416.80
8.0.160.0040.00416.95
8.0.150.0040.00416.70
8.0.140.0040.00416.88
8.0.130.0000.00513.32
8.0.120.0040.00416.72
8.0.110.0050.00216.79
8.0.100.0040.00416.96
8.0.90.0050.00216.84
8.0.80.0090.00616.95
8.0.70.0040.00416.79
8.0.60.0070.00016.70
8.0.50.0060.00316.96
8.0.30.0060.01317.07
8.0.20.0140.00717.40
8.0.10.0040.00416.83
8.0.00.0120.00416.63
7.4.330.0050.00016.70
7.4.320.0000.00616.49
7.4.300.0030.00516.36
7.4.290.0040.00216.45
7.4.280.0000.00816.44
7.4.270.0000.00816.54
7.4.260.0000.00716.54
7.4.250.0040.00416.41
7.4.240.0070.00016.55
7.4.230.0000.00816.57
7.4.220.0100.01016.63
7.4.210.0110.01016.44
7.4.200.0030.00416.36
7.4.160.0070.01116.74
7.4.150.0130.00317.40
7.4.140.0080.01117.86
7.4.130.0120.00916.52
7.4.120.0070.01216.45
7.4.110.0070.01016.46
7.4.100.0100.01316.32
7.4.90.0150.00916.22
7.4.80.0070.01419.39
7.4.70.0140.00316.50
7.4.60.0110.00616.37
7.4.50.0090.00316.45
7.4.40.0070.01316.18
7.4.30.0140.00816.62
7.4.00.0070.01014.82
7.3.330.0070.00013.22
7.3.320.0030.00313.23
7.3.310.0070.00016.27
7.3.300.0040.00416.35
7.3.290.0040.00416.17
7.3.280.0090.00816.25
7.3.270.0070.01117.40
7.3.260.0150.00316.34
7.3.250.0100.00816.22
7.3.240.0100.00816.42
7.3.230.0140.00316.42
7.3.210.0130.01016.30
7.3.200.0080.00819.39
7.3.190.0100.00716.49
7.3.180.0130.00316.41
7.3.170.0130.00716.51
7.3.160.0130.00316.38
7.2.330.0100.01316.62
7.2.320.0130.01216.54
7.2.310.0060.01216.66
7.2.300.0110.00716.54
7.2.290.0090.00716.56
7.2.60.0030.01316.93
7.2.00.0030.01018.97
7.1.200.0000.01115.87
7.1.100.0080.00817.97
7.1.70.0000.00816.92
7.1.60.0140.01119.40
7.1.50.0070.01016.84
7.1.00.0170.06322.51
7.0.200.0900.00714.59
7.0.60.0070.03721.74
7.0.50.0030.05717.96
7.0.40.0100.08320.40
7.0.30.0270.06720.23
7.0.20.0200.04720.12
7.0.10.0030.04720.21
7.0.00.0070.04020.30
5.6.280.0030.04021.10
5.6.210.0070.03720.48
5.6.200.0200.06318.14
5.6.190.0200.04020.52
5.6.180.0270.04020.63
5.6.170.0300.07020.51
5.6.160.0130.06020.61
5.6.150.0070.04318.22
5.6.140.0070.08018.14
5.6.130.0000.07018.26
5.6.120.0030.04320.97
5.6.110.0100.07720.98
5.6.100.0100.03321.02
5.6.90.0070.08321.12
5.6.80.0030.07720.42
5.5.350.0030.06720.45
5.5.340.0000.06017.95
5.5.330.0200.07020.46
5.5.320.0500.05020.35
5.5.310.0300.03720.19
5.5.300.0030.07017.98
5.5.290.0070.06018.04
5.5.280.0130.07720.88
5.5.270.0130.06020.73
5.5.260.0170.07720.87
5.5.250.0030.08020.70
5.5.240.0130.04320.35

preferences:
46.97 ms | 400 KiB | 5 Q