3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (int) INF,"\n"; var_dump(1/INF);
based on YMH39
Output for 4.3.6 - 5.0.1, 5.0.3 - 5.4.45, 7.0.0 - 7.3.0beta1
0 float(0)
Output for 5.5.0 - 5.6.28
-9223372036854775808 float(0)
Output for 5.0.2
9223372036854775807 float(0)
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant INF - assumed 'INF' in /in/SGLcJ on line 3 0 Notice: Use of undefined constant INF - assumed 'INF' in /in/SGLcJ on line 4 Warning: Division by zero in /in/SGLcJ on line 4 bool(false)