3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf('%.4d %.4f', 0xFF, 0xFF); echo printf("\n%d and %.2f makes %o", 4+7,4/7,47); echo preg_replace('/(\w+) (\w+)/','\0, \2, \1'. 'Rodrigo Capile');
Output for git.master, git.master_jit, rfc.property-hooks
255 255.0000 11 and 0.57 makes 5721 Fatal error: Uncaught ArgumentCountError: preg_replace() expects at least 3 arguments, 2 given in /in/sWrN2:5 Stack trace: #0 /in/sWrN2(5): preg_replace('/(\\w+) (\\w+)/', '\\0, \\2, \\1Rodri...') #1 {main} thrown in /in/sWrN2 on line 5
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:
60.21 ms | 401 KiB | 8 Q