3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class XXX{ const AR = [1,2,3]; } function test(...$args) { var_dump($args); } test(... ([1,2,3]), ... $xxx); // [1, 2, 3] // [1, 2, 3] test(...XXX::AR); // [1, 2, 3] test(...new ArrayIterator([1, 2, 3])); // [1, 2, 3]
based on essOU

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0150.00698.97
7.3.0rc30.0060.00616.13
7.3.0beta10.0030.00912.36
7.3.0alpha10.0050.00212.46
7.2.60.0080.00416.55
7.1.200.0040.00815.77
7.1.70.0000.00917.12
7.1.60.0040.02119.32
7.1.50.0000.01916.83
7.1.00.0130.06722.28
7.0.200.0000.01016.82
7.0.140.0070.07022.12
7.0.60.0200.06719.86
7.0.50.0100.07717.79
7.0.40.0100.04320.27
7.0.30.0270.04720.23
7.0.20.0400.06320.12
7.0.10.0030.05020.15
7.0.00.0070.08320.25
5.6.210.0030.05320.77
5.6.200.0000.07318.16
5.6.190.0100.04020.39
5.6.180.0330.07320.63
5.6.170.0300.07020.71
5.6.160.0000.05020.45
5.6.150.0000.04318.18
5.6.140.0130.04018.19
5.6.130.0030.05018.28
5.6.120.0070.08321.05
5.6.110.0000.04321.00
5.6.100.0270.07321.01
5.6.90.0030.09020.97
5.6.80.0100.07320.53
5.6.70.4500.04020.46
5.5.350.0230.08320.46
5.5.340.0130.07717.99
5.5.330.0070.06720.44
5.5.320.0270.07720.36
5.5.310.0270.05320.51
5.5.300.0030.08717.99
5.5.290.0070.08317.96
5.5.280.0070.08720.89
5.5.270.0000.05020.84
5.5.260.0030.04720.79
5.5.250.0070.03720.77
5.5.240.0270.07020.27
5.4.450.0170.05719.57
5.4.440.0130.04019.41
5.4.430.0200.06019.54
5.4.420.0230.07719.30
5.4.410.0170.04319.30
5.4.400.0230.07318.98
5.4.390.0200.06019.07
5.4.380.0200.07718.99
5.4.370.0200.07019.08
5.4.360.0270.04319.14
5.4.350.0230.03319.15
5.4.340.0170.04018.98
5.4.320.0200.04019.31
5.4.310.0270.06718.98
5.4.300.0270.06718.99
5.4.290.0300.05719.31
5.4.280.0170.04718.94
5.4.270.0130.07718.99
5.4.260.0270.03319.14
5.4.250.0300.06018.85
5.4.240.0130.04719.17
5.4.230.0230.04019.07
5.4.220.0200.04318.93
5.4.210.0170.08018.86
5.4.200.0300.05319.24
5.4.190.0200.07319.15
5.4.180.0230.06019.18
5.4.170.0200.03718.98
5.4.160.0270.06019.18
5.4.150.0170.07718.85
5.4.140.0270.07716.42
5.4.130.0170.03716.67
5.4.120.0270.06316.50
5.4.110.0230.06016.37
5.4.100.0230.05016.41
5.4.90.0170.06016.37
5.4.80.0200.06316.40
5.4.70.0270.04316.26
5.4.60.0300.06316.43
5.4.50.0200.07016.35
5.4.40.0130.07316.24
5.4.30.0200.07016.54
5.4.20.0230.06316.38
5.4.10.0230.07316.53
5.4.00.0170.06016.12
5.3.290.0100.04314.80
5.3.280.0230.05314.80
5.3.270.0100.05714.80
5.3.260.0370.03314.80
5.3.250.0070.07314.80
5.3.240.0170.04314.80
5.3.230.0230.04314.80
5.3.220.0200.07314.80
5.3.210.0230.07014.80
5.3.200.0200.06014.80
5.3.190.0100.04714.80
5.3.180.0200.07014.80
5.3.170.0270.03714.80
5.3.160.0330.06014.80
5.3.150.0270.07014.80
5.3.140.0300.06714.80
5.3.130.0230.07714.80
5.3.120.0370.03014.80
5.3.110.0200.06714.80
5.3.100.0200.03314.80
5.3.90.0170.03714.80
5.3.80.0200.03314.80
5.3.70.0130.04014.80
5.3.60.0270.02314.80
5.3.50.0130.04314.80
5.3.40.0170.05314.80
5.3.30.0200.05314.80
5.3.20.0170.04014.80
5.3.10.0230.03014.80
5.3.00.0130.03314.80
5.2.170.0130.03014.80
5.2.160.0130.05714.80
5.2.150.0170.05014.80
5.2.140.0130.04014.80
5.2.130.0130.04714.80
5.2.120.0170.03714.80
5.2.110.0100.03014.80
5.2.100.0100.04014.80
5.2.90.0070.04314.80
5.2.80.0170.03714.80
5.2.70.0170.02314.80
5.2.60.0200.06314.80
5.2.50.0170.05714.80
5.2.40.0130.06314.80
5.2.30.0170.05314.80
5.2.20.0170.05314.80
5.2.10.0200.05014.80
5.2.00.0130.06014.80
5.1.60.0100.04014.80
5.1.50.0230.03014.80
5.1.40.0130.04014.80
5.1.30.0130.05714.80
5.1.20.0130.03014.80
5.1.10.0130.02714.80
5.1.00.0170.05014.80
5.0.50.0170.03314.80
5.0.40.0030.03314.80
5.0.30.0130.06014.80
5.0.20.0100.04014.80
5.0.10.0070.03314.80
5.0.00.0030.04014.80
4.4.90.0030.02314.80
4.4.80.0030.02714.80
4.4.70.0030.03714.80
4.4.60.0070.03014.80
4.4.50.0070.02714.80
4.4.40.0030.04714.80
4.4.30.0070.03314.80
4.4.20.0100.01314.80
4.4.10.0070.03314.80
4.4.00.0070.03714.80
4.3.110.0070.02014.80
4.3.100.0070.03714.80
4.3.90.0100.03314.80
4.3.80.0070.05714.80
4.3.70.0070.02714.80
4.3.60.0000.02314.80
4.3.50.0070.03314.80
4.3.40.0100.03314.80
4.3.30.0030.02014.80
4.3.20.0100.03314.80
4.3.10.0030.03714.80
4.3.00.0070.03014.80