3v4l.org

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