3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_is_numeric($value) { return (preg_match ("/\A(-){0, 1}([0-9]+)((,|.)[0-9]{3, 3})*((,|.)[0-9]){0, 1}([0-9]*)\z/" ,$value) == 1); } my_is_numeric("1.59.59"); ?>

preferences:
50.32 ms | 402 KiB | 5 Q