3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(fmod(8, 1)); var_dump(is_float(8.00, 1)); var_dump(is_float(8.50, 1));
based on R52jj
Output for 5.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0RC5
float(0) Warning: is_float() expects exactly 1 parameter, 2 given in /in/bKdmd on line 3 bool(false) Warning: is_float() expects exactly 1 parameter, 2 given in /in/bKdmd on line 4 bool(false)
Output for 4.3.2 - 5.2.17
float(0) Warning: is_float(): Only one argument expected in /in/bKdmd on line 3 bool(false) Warning: is_float(): Only one argument expected in /in/bKdmd on line 4 bool(false)
Output for 4.3.0 - 4.3.1
float(0) Warning: is_float() [http://www.php.net/function.is-float]: Only one argument expected in /in/bKdmd on line 3 bool(false) Warning: is_float() [http://www.php.net/function.is-float]: Only one argument expected in /in/bKdmd on line 4 bool(false)