3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(-1 * 0.0); var_dump(-1 / Inf);
based on 2RKrk
Output for 7.2.0
float(-0) Warning: Use of undefined constant Inf - assumed 'Inf' (this will throw an Error in a future version of PHP) in /in/qQITH on line 4 Warning: A non-numeric value encountered in /in/qQITH on line 4 Warning: Division by zero in /in/qQITH on line 4 float(-INF)
Output for 7.1.0 - 7.1.10
float(-0) Notice: Use of undefined constant Inf - assumed 'Inf' in /in/qQITH on line 4 Warning: A non-numeric value encountered in /in/qQITH on line 4 Warning: Division by zero in /in/qQITH on line 4 float(-INF)
Output for 7.0.0 - 7.0.20
float(-0) Notice: Use of undefined constant Inf - assumed 'Inf' in /in/qQITH on line 4 Warning: Division by zero in /in/qQITH on line 4 float(-INF)
Output for 5.3.21 - 5.6.28
float(-0) Notice: Use of undefined constant Inf - assumed 'Inf' in /in/qQITH on line 4 Warning: Division by zero in /in/qQITH on line 4 bool(false)