3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XXX{ const AR = [1,2,3]; } function test(...$args) { var_dump($args); } test(... (1), 1); // [1, 2, 3] // [1, 2, 3] test(...XXX::AR); // [1, 2, 3] test(...new ArrayIterator([1, 2, 3])); // [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)
5.4.320.0270.07019.22
5.4.310.0230.07719.05
5.4.300.0230.03719.23
5.4.290.0230.06719.16
5.4.280.0170.04318.95
5.4.270.0230.07319.08
5.4.260.0270.06319.10
5.4.250.0230.04019.19
5.4.240.0230.07318.84
5.4.230.0200.04719.19
5.4.220.0270.07019.19
5.4.210.0200.04318.95
5.4.200.0230.07019.07
5.4.190.0270.06018.86
5.4.180.0200.05019.16
5.4.170.0270.07018.86
5.4.160.0300.06719.14
5.4.150.0300.03718.82
5.4.140.0200.05016.37
5.4.130.0200.06016.50
5.4.120.0400.05316.31
5.4.110.0270.06716.55
5.4.100.0300.06716.58
5.4.90.0330.06716.53
5.4.80.0270.07016.43
5.4.70.0370.06016.43
5.4.60.0200.06016.23
5.4.50.0170.04316.17
5.4.40.0270.06716.52
5.4.30.0230.03716.53
5.4.20.0300.05016.42
5.4.10.0230.04316.52
5.4.00.0330.03315.77
5.3.290.0270.07314.66
5.3.280.0370.06714.56
5.3.270.0230.05714.52
5.3.260.0270.06714.57
5.3.250.0200.04314.69
5.3.240.0330.03314.60
5.3.230.0200.03714.61
5.3.220.0170.03714.58
5.3.210.0200.03714.46
5.3.200.0330.06314.79
5.3.190.0330.05314.48
5.3.180.0170.06714.67
5.3.170.0300.06714.56
5.3.160.0230.07314.53
5.3.150.0170.05014.47
5.3.140.0330.04014.79
5.3.130.0230.03714.55
5.3.120.0230.08014.56
5.3.110.0270.05014.46
5.3.100.0170.05714.26
5.3.90.0270.06714.02
5.3.80.0270.06714.05
5.3.70.0300.07014.09
5.3.60.0230.03714.05
5.3.50.0230.04314.09
5.3.40.0270.03014.08
5.3.30.0230.04313.90
5.3.20.0170.03713.80
5.3.10.0230.07013.80
5.3.00.0270.07713.80
5.2.170.0230.04713.80
5.2.160.0200.06313.80
5.2.150.0270.05313.80
5.2.140.0170.04313.80
5.2.130.0200.03713.80
5.2.120.0270.05313.80
5.2.110.0230.03713.80
5.2.100.0200.03313.80
5.2.90.0200.05313.80
5.2.80.0170.05713.80
5.2.70.0200.04313.80
5.2.60.0170.04313.80
5.2.50.0170.06013.80
5.2.40.0230.05713.80
5.2.30.0130.03713.80
5.2.20.0170.05713.80
5.2.10.0170.04013.80
5.2.00.0170.05013.80
5.1.60.0270.03713.80
5.1.50.0170.05313.80
5.1.40.0170.05313.80
5.1.30.0230.04313.80
5.1.20.0200.04313.80
5.1.10.0170.03313.80
5.1.00.0130.03313.80
5.0.50.0130.01313.80
5.0.40.0100.02313.80
5.0.30.0030.03313.80
5.0.20.0030.02313.80
5.0.10.0100.01713.80
5.0.00.0070.03013.80
4.4.90.0070.01713.80
4.4.80.0030.01713.80
4.4.70.0000.02313.80
4.4.60.0030.01713.80
4.4.50.0100.01713.80
4.4.40.0070.03013.80
4.4.30.0070.01713.80
4.4.20.0070.01713.80
4.4.10.0070.01713.80
4.4.00.0070.02313.80
4.3.110.0070.01713.80
4.3.100.0070.01313.80
4.3.90.0030.02013.80
4.3.80.0030.02713.80
4.3.70.0070.01313.80
4.3.60.0000.02013.80
4.3.50.0030.01713.80
4.3.40.0030.02313.80
4.3.30.0000.01713.80
4.3.20.0030.01713.80
4.3.10.0030.01313.80
4.3.00.0000.02013.80

preferences:
143.89 ms | 1394 KiB | 7 Q