3v4l.org

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

preferences:
37.33 ms | 402 KiB | 5 Q