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); } myprelog('test %s %s', 'abc', 'def');
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/DPKR6 on line 9 Fatal error: Uncaught ValueError: The arguments array must contain 2 items, 1 given in /in/DPKR6:9 Stack trace: #0 /in/DPKR6(9): vsprintf('test %s %s', Array) #1 /in/DPKR6(5): mylog('test %s %s', Array) #2 /in/DPKR6(12): myprelog('test %s %s', 'abc', 'def') #3 {main} thrown in /in/DPKR6 on line 9
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
68.57 ms | 401 KiB | 8 Q