run code in 200+ php & hhvm versions
Bugs & Features
<?php function mylog(string $msg, ...$args) { echo vsprintf($msg, $args); } mylog('test');
based on W73Y9
Output for hhvm-3.15.4, 7.0.0 - 7.3.0beta1
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/j1Iv8 on line 8 and defined in /in/j1Iv8 on line 4
Process exited with code 255.