3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$phone = "841657196818"; $phone = "841657936818"; if(preg_match("/^[1-9]{2}[0-9]{8|9|10}$/", $phone)) { echo "$phone Valid"; } else { echo "$phone Invalid."; }
based on LAmc5
Output for 4.3.0 - 7.2.0
841657936818 Valid