3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = '222-333-4545'; if (strlen($values) > 0 && !preg_match('/^[1]{0,1}-[0-9]{3}-[0-9]{3}-[0-9]{3,4}$/', $values)) { $err_msg[4] = ('Phone number must be in format xxx-nnn-nnnn.'); echo $err_msg[4]; }
Output for git.master, git.master_jit, rfc.property-hooks
Phone number must be in format xxx-nnn-nnnn.

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:
29.74 ms | 405 KiB | 9 Q