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