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) . '</br>'; echo '+1 (' . substr($value, 0, 3) . ') ' . substr($value, 3, 3) . '-', substr($value, 6) . '</br>'; echo '+1' . $value . '</br>'; echo $value . '</br>'; echo 'tel:' . $value . '</br>';
Output for git.master, git.master_jit, rfc.property-hooks
(012) 345-6789</br>+1 (012) 345-6789</br>+10123456789</br>0123456789</br>tel:0123456789</br>

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