3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($a, ...$arg) { print_r(func_get_args()); print_r($arg); print_r($a); } function goo(...$arg) { print_r(func_get_args()); print_r($arg); } foo(...[ 'b' => 2, 'a' => 1,'d' => 3]); print PHP_EOL; print PHP_EOL; goo(...[ 'b' => 2, 'a' => 1,'d' => 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.5.90.0080.01118.64
8.5.80.0050.00416.75
8.5.70.0110.00618.56
8.5.60.0100.00816.50
8.5.50.0110.00316.84
8.5.30.0090.00817.86
8.5.20.0110.00720.05
8.5.10.0130.00816.58
8.5.00.0140.00719.87
8.4.240.0110.01019.55
8.4.230.0030.00719.54
8.4.220.0130.01119.40
8.4.210.0060.00421.06
8.4.180.0140.00821.94
8.4.170.0140.00723.88
8.4.160.0130.00823.94
8.4.150.0080.00516.81
8.4.140.0150.00817.44
8.4.130.0080.00417.84
8.4.120.0110.00922.64
8.4.110.0080.01119.06
8.4.100.0080.00317.69
8.4.90.0080.00517.93
8.4.80.0050.00317.80
8.4.70.0130.00617.72
8.4.60.0130.00718.56
8.4.50.0120.00817.58
8.4.40.0080.00317.84
8.4.30.0340.01417.36
8.4.20.0360.01217.40
8.4.10.0420.00617.45
8.3.330.0050.00418.36
8.3.320.0140.00518.30
8.3.310.0090.01420.13
8.3.300.0100.00920.68
8.3.290.0140.00618.16
8.3.280.0130.00718.38
8.3.270.0110.00816.62
8.3.260.0130.00316.57
8.3.250.0110.00818.89
8.3.240.0040.00416.66
8.3.230.0090.00516.30
8.3.220.0030.00617.11
8.3.210.0130.00716.48
8.3.200.0040.00416.66
8.3.190.0090.00918.99
8.3.180.0120.00616.43
8.3.170.0120.00916.49
8.3.160.0400.01016.44
8.3.150.0370.00916.46
8.3.140.0460.00016.59
8.3.130.0350.00716.65
8.3.120.0340.00416.50
8.3.110.0260.01516.41
8.3.100.0330.01216.29
8.3.90.0320.00816.25
8.3.80.0360.01016.30
8.3.70.0310.01016.29
8.3.60.0260.01316.68
8.3.50.0210.00016.48
8.3.40.0500.00317.79
8.3.30.0190.01317.25
8.3.20.0270.00917.39
8.3.10.0290.00717.42
8.3.00.0170.00617.33
8.2.320.0130.00617.88
8.2.310.0090.01118.04
8.2.300.0110.00920.31
8.2.290.0070.01220.09
8.2.280.0100.00918.43
8.2.270.0300.00916.20
8.2.260.0310.00716.29
8.2.250.0350.00016.37
8.2.240.0320.00716.46
8.2.230.0250.01416.42
8.2.220.0280.00916.74
8.2.210.0320.00716.60
8.2.200.0210.01816.40
8.2.190.0250.01316.31
8.2.180.0380.00016.23
8.2.170.0370.00317.53
8.2.160.0300.01017.57
8.2.150.0310.01117.33
8.2.140.0350.00717.39
8.2.130.0200.01017.30
8.2.120.0290.01217.23
8.2.110.0390.00317.43
8.2.100.0230.00817.39
8.2.90.0150.00817.37
8.2.80.0210.00717.44
8.2.70.0200.01617.62
8.2.60.0230.01517.61
8.2.50.0320.00717.18
8.2.40.0290.00717.45
8.2.30.0250.01217.45
8.2.20.0340.00517.38
8.2.10.0250.01217.55
8.2.00.0290.00717.42
8.1.340.0140.00617.55
8.1.320.0100.01016.18

preferences:
42.69 ms | 905 KiB | 5 Q