3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = $_POST['a'] = '2.2250738585072011e-308'; $b= $_POST['b'] = '333'; echo $a."\n"; echo $b."\n"; echo (($a * $b) . '')."\n"; $f = (($a * $b) . ''); echo gettype($f)."\n"; echo (!is_numeric(($a * $b) . '')) ? "yes right way \n":"not number...\n"; echo (($a * $b) != INF) ? "YES infinite.. \n":"NOt inf ... \n"; if(!is_numeric (($a * $b) . '') && (($a * $b) != INF)) { echo "good\n"; }else{echo "WRONG...\n";}
based on cE5rR
Output for 4.3.10 - 4.4.9, 5.0.3 - 7.2.0
2.2250738585072011e-308 333 7.409495948829E-306 string not number... YES infinite.. WRONG...
Output for 4.3.6 - 4.3.9, 5.0.0 - 5.0.2
2.2250738585072011e-308 333 666 string not number... YES infinite.. WRONG...
Output for 4.3.0 - 4.3.5
2.2250738585072011e-308 333 666 string not number... Notice: Use of undefined constant INF - assumed 'INF' in /in/iDZMD on line 12 YES infinite.. WRONG...