3v4l.org

run code in 300+ PHP versions simultaneously
<?php //us-formatted: (xxx) yyy-wwuu note the spacing //int-formatted: +1 (xxx) yyy-wwuu note the spacing //click2call: +1xxxyyywwuu //plivo: xxxyyywwuu //mojo: tel:xxxyyywwuu $value = '0123456789'; echo '(' . substr($value, 0, 3) . ') ' . substr($value, 3, 3) . '-', substr($value, 6); echo '+1 (' . substr($value, 0, 3) . ') ' . substr($value, 3, 3) . '-', substr($value, 6); echo '+1' . $value; echo $value; echo 'tel:' . $value;
Output for git.master, git.master_jit, rfc.property-hooks
(012) 345-6789+1 (012) 345-6789+101234567890123456789tel:0123456789

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:
56.01 ms | 401 KiB | 8 Q