3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $floatlike = '12,34'; var_dump(is_float($floatlike)); var_dump(is_numeric($floatlike)); var_dump(24/$floatlike); var_dump(10 * $floatlike); var_dump(10 + $floatlike); var_dump(10 - $floatlike);
based on n5O6Q
Output for 7.1.0 - 7.2.0
bool(false) bool(false) Notice: A non well formed numeric value encountered in /in/MU78Z on line 8 int(2) Notice: A non well formed numeric value encountered in /in/MU78Z on line 9 int(120) Notice: A non well formed numeric value encountered in /in/MU78Z on line 10 int(22) Notice: A non well formed numeric value encountered in /in/MU78Z on line 11 int(-2)
Output for 5.3.20 - 7.0.20
bool(false) bool(false) int(2) int(120) int(22) int(-2)