3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = $_POST['a'] = '6898557993159892'; $b= $_POST['b'] = '222.0'; echo $a."\n"; echo $b."\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 5oaFf
Output for 4.3.6 - 7.2.0
6898557993159892 222.0 not number... YES infinite.. WRONG...
Output for 4.3.0 - 4.3.5
6898557993159892 222.0 not number... Notice: Use of undefined constant INF - assumed 'INF' in /in/ecA5I on line 9 YES infinite.. WRONG...