3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace YOLOLOLO; function print_r(... $args) { foreach ($args as $arg) { \print_r($arg); } } print_r("YOLO", "SUP", ["dup", "d'oh"]);
based on tTJ1Y
Output for 5.6.0 - 7.3.0beta1
YOLOSUPArray ( [0] => dup [1] => d'oh )
Output for 5.5.0 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/AQ8F8 on line 4
Process exited with code 255.