3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $temp1 = "0,2345"; $temp2 = 1244; $temp3 = "123.45"; if (is_numeric((float)$temp1)) {echo "true";} if (is_numeric($temp2)) {echo "true";} if (is_numeric($temp3)) {echo "true";}
based on of4C1
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
truetruetrue