3v4l.org

run code in 300+ PHP versions simultaneously
<?php function variadic(string $a, ...$b) { printf( "--------------%d---------------\n", func_num_args()); var_dump(func_get_args()); var_dump($a, $b); printf("------------------------------\n\n"); } variadic("a", ["things", "things2"]); variadic(a: "a", b: ["things", "things2"]);

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.30.0090.01019.44
8.5.20.0080.00921.40
8.5.10.0090.01216.42
8.5.00.0090.01220.05
8.4.180.0150.00725.76
8.4.170.0120.00923.86
8.4.160.0150.00723.74
8.4.150.0070.00616.89
8.4.140.0130.00917.75
8.4.130.0140.00717.91
8.4.120.0050.00320.67
8.4.110.0100.01022.51
8.4.100.0110.00917.79
8.4.90.0130.00818.73
8.4.80.0070.00217.82
8.4.70.0090.01117.91
8.4.60.0120.00818.91
8.4.50.0040.00418.05
8.4.40.0080.00019.42
8.4.30.0100.00620.42
8.4.20.0110.01118.95
8.4.10.0060.00319.50
8.3.300.0130.00720.81
8.3.290.0110.01120.82
8.3.280.0140.00818.51
8.3.270.0110.00816.25
8.3.260.0120.00716.46
8.3.250.0130.00718.81
8.3.240.0120.00816.61
8.3.230.0070.00816.40
8.3.220.0110.00817.11
8.3.210.0060.00716.84
8.3.200.0060.00516.62
8.3.190.0090.00617.20
8.3.180.0150.00516.59
8.3.170.0130.00617.00
8.3.160.0160.00318.46
8.3.150.0040.01120.77
8.3.140.0090.00916.79
8.3.130.0030.00516.53
8.3.120.0030.00619.05
8.3.110.0070.00320.94
8.3.100.0050.00518.31
8.3.90.0000.00726.77
8.3.80.0060.00319.36
8.3.70.0160.00316.58
8.3.60.0150.00416.38
8.3.50.0110.00716.50
8.3.40.0070.00718.71
8.3.30.0070.01018.51
8.3.20.0040.00424.18
8.3.10.0000.00924.66
8.3.00.0080.00026.16
8.2.300.0120.00917.86
8.2.290.0050.00520.32
8.2.280.0110.00818.36
8.2.270.0100.01017.25
8.2.260.0040.00419.78
8.2.250.0090.00618.18
8.2.240.0100.01018.80
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0040.00718.88
8.2.190.0060.00918.16
8.2.180.0090.00625.92
8.2.170.0080.00818.84
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00421.12
8.2.110.0060.00620.39
8.2.100.0060.00320.39
8.1.340.0130.00719.81
8.1.330.0090.00721.98
8.1.320.0110.00916.38
8.1.310.0060.00318.60
8.1.300.0100.00716.23
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00618.91
8.1.230.0040.00819.06
8.0.30.0070.01616.78
8.0.20.0060.01716.95
8.0.10.0070.01016.91
8.0.00.0030.01416.99
7.4.160.0090.00916.45
7.4.150.0060.00916.48
7.4.140.0080.00816.23
7.4.130.0070.01016.18
7.4.120.0100.00716.32
7.4.110.0110.00416.20
7.4.100.0120.00616.41
7.4.90.0100.01016.36
7.4.80.0140.00716.36
7.4.70.0040.01116.18
7.4.60.0100.01016.32
7.4.50.0090.00616.15
7.4.40.0060.00916.28
7.4.30.0110.00716.26
7.4.20.0060.00916.20
7.4.10.0090.00616.21
7.4.00.0100.00616.28
7.3.270.0070.00716.27
7.3.260.0160.00016.16
7.3.250.0110.00716.20
7.3.240.0090.01216.27
7.3.230.0090.00916.22
7.3.220.0110.01116.15
7.3.210.0070.01016.05
7.3.200.0090.00616.23
7.3.190.0120.00916.09
7.3.180.0030.01416.10
7.3.170.0100.01016.10
7.3.160.0070.00716.10
7.3.150.0040.01116.14
7.3.140.0100.01016.06
7.3.130.0000.01516.07
7.3.120.0050.00916.05
7.3.110.0090.01015.99
7.3.100.0040.01516.04
7.3.90.0110.00716.39
7.3.80.0090.00616.07
7.3.70.0000.02016.11
7.3.60.0110.00416.20
7.3.50.0000.02016.25
7.3.40.0160.00316.18
7.3.30.0050.01716.20
7.3.20.0070.01516.24
7.3.10.0170.00016.09
7.3.00.0130.01016.19

preferences:
43.67 ms | 1105 KiB | 5 Q