3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function validateMobile($mobile){ return preg_match("/^1[345789]\d{9}$/", $mobile); } var_dump(validateMobile('15900000000')); var_dump(validateMobile('13900000000'));
based on SYSAm
Output for 5.3.19 - 5.6.28, 7.0.3 - 7.2.0
int(1) int(1)
Output for 7.0.0 - 7.0.2
int(0) int(1)