3v4l.org

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

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.93 ms | 401 KiB | 8 Q