3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $this->count = float(44.28) $multiple = float(0.36) $calc = $this->count / $multiple; $calc = 44.28 / 0.36 = 123; if($calc == round($calc)) { die('is integer'); } else { die('is float); }
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '$multiple' (T_VARIABLE) in /in/5NbfW on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/5NbfW on line 4
Process exited with code 255.