3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lat = '1.3456789'; $invalid = preg_match('/^(\+|-)?(?:180(?:(?:\.0{1,6})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,6})?))$/', $lat); echo $invalid;
based on vcC4Q
Output for 5.6.0 - 7.3.0beta1
0