3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp1 = "0,2345"; $temp2 = 1244; $temp3 = "123.45"; if (is_numeric($temp1)) {echo "true";} if (is_numeric($temp2)) {echo "true";} if (is_numeric($temp3)) {echo "true";}

preferences:
42.24 ms | 402 KiB | 5 Q