3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = (float)(44.28); $multiple = (float)(0.35); $calc = $count / $multiple; //$calc = 44.28 / 0.36 = 123 //$calc = number_format($calc, 2, '.', ''); if(preg_match('~^[0-9]+$', $calc)) die("is integer"); else die("is not integer");
Output for 4.3.11 - 7.1.0
Warning: preg_match(): No ending delimiter '~' found in /in/h9SXQ on line 11 is not integer
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter '~' found in /in/h9SXQ on line 11 is not integer