3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isOutgoingCall($phone) { $phone = str_replace('+', '', $phone); return preg_match('#^([456]?(380|0)[0-9]{9})$#', $phone); } $isOutgoingCallFunctionResult1 = isOutgoingCall('380957600623'); var_dump($isOutgoingCallFunctionResult1); $isOutgoingCallFunctionResult2 = isOutgoingCall('0957600623'); var_dump($isOutgoingCallFunctionResult2); $isOutgoingCallFunctionResult3 = isOutgoingCall('4380957600623'); var_dump($isOutgoingCallFunctionResult3); $isOutgoingCallFunctionResult4 = isOutgoingCall('40957600623'); var_dump($isOutgoingCallFunctionResult4); $isOutgoingCallFunctionResult5 = isOutgoingCall('5380957600623'); var_dump($isOutgoingCallFunctionResult5); $isOutgoingCallFunctionResult6 = isOutgoingCall('50957600623'); var_dump($isOutgoingCallFunctionResult6); $isOutgoingCallFunctionResult7 = isOutgoingCall('6380957600623'); var_dump($isOutgoingCallFunctionResult7); $isOutgoingCallFunctionResult8 = isOutgoingCall('60957600623'); var_dump($isOutgoingCallFunctionResult8); $isOutgoingCallFunctionResult9 = isOutgoingCall('012345678'); var_dump($isOutgoingCallFunctionResult9);
Output for git.master_jit, git.master, rfc.property-hooks
int(1) int(1) int(1) int(1) int(1) int(1) int(1) int(1) int(0)

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