3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^\+?0*(?:91-)?\K(?:91)?[6-9][0-9]{9}$/m'; $str = '+918877665544 0918877665544 0000918877665544 +91-8877665544 91-8877665544 00008877665544 +91-88776655440 91-88-77665544 +818877665544 0918877665544 0000918877665544 +91-8877665544 92-8877665544 00002877665544'; preg_match_all($re, $str, $matches); print_r($matches[0]);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => 918877665544 [1] => 918877665544 [2] => 918877665544 [3] => 8877665544 [4] => 8877665544 [5] => 8877665544 [6] => 918877665544 [7] => 918877665544 [8] => 8877665544 )

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:
95.67 ms | 406 KiB | 5 Q