3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myprelog(string $content, ...$args) { mylog($content, $args); } function mylog(string $msg, ...$args) { echo vsprintf($msg, $args); } mylog('test', 'abc', 'def');

preferences:
42.23 ms | 402 KiB | 5 Q