3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function mylog(string $msg, ...$args) { echo sprintf($msg, $args); } mylog('test %s', 'abc');
based on tWtv3
Output for hhvm-3.15.4, 7.0.0 - 7.3.0beta1
Notice: Array to string conversion in /in/qX9Zl on line 5 test Array
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to mylog() must be an instance of string, string given, called in /in/qX9Zl on line 8 and defined in /in/qX9Zl on line 4
Process exited with code 255.