3v4l.org

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