3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<EOL A B C D One Two Three Four 100 2000 30000 400000 EOL; echo '<table width="400" border="1">'; echo preg_replace( '#^(\S*) (\S*) (\S*) (\S*)$#m', "\n\t<tr><td>\$1 \$2</td><td>\$3</td><td>\$4</td></tr>", $input ); echo "\n</table>";
Output for git.master_jit, git.master
<table width="400" border="1"> <tr><td>A B</td><td>C</td><td>D</td></tr> <tr><td>One Two</td><td>Three</td><td>Four</td></tr> <tr><td>100 2000</td><td>30000</td><td>400000</td></tr> </table>

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:
59.24 ms | 405 KiB | 5 Q