3v4l.org

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