3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function test($a, $b) { var_dump('A:' . $a); var_dump('B:' . $b); } } $a = new A; call_user_func_array([$a, 'test'], ['1', '2']); // this works call_user_func_array([$a, 'test'], ['b' => '2', 'a' => 1]); // this works too call_user_func_array([$a, 'test'], ['c' => 1, 'd' => 2]); // this deoesnt work since php8 since there are no parametes names c or d

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.5.10.0140.00218.73
8.5.00.0110.01120.16
8.4.150.0010.00114.05
8.4.140.0180.01117.70
8.4.130.0040.00518.77
8.4.120.0090.01024.15
8.4.110.0070.00919.06
8.4.100.0120.01017.84
8.4.90.0100.00920.91
8.4.80.0100.00918.78
8.4.70.0030.00518.75
8.4.60.0120.00818.58
8.4.50.0050.00419.62
8.4.40.0040.00419.70
8.4.30.0150.00618.74
8.4.20.0040.00418.05
8.4.10.0100.01019.55
8.3.280.0100.00918.38
8.3.270.0180.00716.93
8.3.260.0110.00616.64
8.3.250.0060.01218.84
8.3.240.0040.00517.41
8.3.230.0140.00516.38
8.3.220.0100.00918.70
8.3.210.0070.00918.81
8.3.200.0080.00516.46
8.3.190.0040.00417.09
8.3.180.0030.00518.65
8.3.170.0070.01120.68
8.3.160.0070.01117.41
8.3.150.0040.01117.10
8.3.140.0040.00418.38
8.3.130.0030.00616.67
8.3.120.0050.00520.96
8.3.110.0040.01220.94
8.3.100.0030.00624.06
8.3.90.0140.00026.77
8.3.80.0040.00416.75
8.3.70.0110.00416.63
8.3.60.0090.00916.50
8.3.50.0110.01120.29
8.3.40.0150.00819.57
8.3.30.0110.00918.94
8.3.20.0110.00423.07
8.3.10.0090.00523.28
8.3.00.0120.00422.55
8.2.290.0060.00420.59
8.2.280.0110.00918.72
8.2.270.0070.01116.73
8.2.260.0070.01018.84
8.2.250.0000.01016.74
8.2.240.0120.00618.59
8.2.230.0000.00922.58
8.2.220.0030.00537.54
8.2.210.0050.00326.77
8.2.200.0080.00016.50
8.2.190.0070.01116.86
8.2.180.0090.00625.92
8.2.170.0100.01320.93
8.2.160.0130.00421.65
8.2.150.0080.00622.40
8.2.140.0060.00522.62
8.2.130.0080.00323.31
8.2.120.0140.00220.03
8.2.110.0070.00719.37
8.2.100.0140.00518.57
8.2.90.0060.00618.33
8.2.80.0040.00819.10
8.2.70.0060.00618.28
8.2.60.0060.00618.42
8.2.50.0100.00518.73
8.2.40.0090.00618.38
8.2.30.0050.01018.45
8.2.20.0040.00618.79
8.2.10.0040.01218.31
8.2.00.0080.00718.78
8.1.330.0080.01121.81
8.1.320.0130.00617.82
8.1.310.0060.00316.66
8.1.300.0040.00418.18
8.1.290.0060.00318.88
8.1.280.0110.01125.92
8.1.270.0070.00722.97
8.1.260.0070.00724.10
8.1.250.0110.00325.09
8.1.240.0050.01318.88
8.1.230.0130.00618.06
8.1.220.0080.00818.30
8.1.210.0110.00518.62
8.1.200.0080.00518.05
8.1.190.0090.00617.96
8.1.180.0070.00718.25
8.1.170.0100.00518.56
8.1.160.0020.01118.66
8.1.150.0130.00318.55
8.1.140.0050.00918.09
8.1.130.0100.00618.80
8.1.120.0090.00518.21
8.1.110.0080.00717.74
8.1.100.0120.00318.08
8.1.90.0120.00217.73
8.1.80.0080.00717.98
8.1.70.0090.00717.78
8.1.60.0120.00417.84
8.1.50.0100.00617.75
8.1.40.0090.00717.83
8.1.30.0120.00717.96
8.1.20.0150.00418.17
8.1.10.0160.00317.79
8.1.00.0150.00717.74
8.0.300.0070.00818.29
8.0.290.0190.00217.19
8.0.280.0180.00619.12
8.0.270.0090.00717.98
8.0.260.0110.00718.16
8.0.250.0140.00417.19
8.0.240.0100.00817.09
8.0.230.0080.00617.16
8.0.220.0110.00517.10
8.0.210.0150.00317.10
8.0.200.0110.00517.16
8.0.190.0080.00717.13
8.0.180.0110.00417.16
8.0.170.0120.00517.22
8.0.160.0130.00517.16
8.0.150.0160.00317.10
8.0.140.0170.00617.10
8.0.130.0170.00517.15
8.0.120.0160.00617.06
8.0.110.0150.00617.02
8.0.100.0140.00717.09
8.0.90.0170.00517.04
8.0.80.0180.00517.05
8.0.70.0120.00517.12
8.0.60.0130.00717.00
8.0.50.0110.00817.07
8.0.30.0100.00817.14
8.0.20.0140.00617.18
8.0.10.0120.00617.26
7.4.330.0090.00214.89
7.4.320.0110.00416.59
7.4.300.0120.00517.60
7.4.290.0160.00316.68
7.4.280.0180.00616.64
7.4.270.0160.00716.70
7.4.260.0160.00616.78
7.4.250.0170.00616.71
7.4.240.0160.00716.69
7.4.230.0180.00516.71
7.4.220.0150.00716.73
7.4.210.0160.00516.69
7.4.200.0160.00516.61
7.4.190.0150.00816.78
7.4.180.0180.00416.84
7.4.160.0150.00616.70
7.4.150.0140.00616.71
7.4.140.0150.00516.68
7.4.130.0100.00916.67
7.4.120.0150.00616.60
7.4.110.0170.00316.58
7.4.100.0140.00516.71
7.4.90.0120.00716.63
7.4.80.0150.00616.67
7.4.70.0110.00816.52
7.4.60.0140.00616.64
7.4.50.0140.00516.61
7.4.40.0110.00616.72
7.4.30.0150.00616.66
7.4.20.0140.00616.65
7.4.10.0120.00616.64
7.4.00.0120.00516.63

preferences:
104.77 ms | 403 KiB | 5 Q