3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(INF); var_dump((int)INF); var_dump((int)INF == 5) ?>
Output for 4.3.6 - 5.0.1, 5.0.3 - 5.4.45, 7.0.0 - 7.1.0
float(INF) int(0) bool(false)
Output for 5.5.24 - 5.6.28
float(INF) int(-9223372036854775808) bool(false)
Output for 5.0.2
float(INF) int(9223372036854775807) bool(false)
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant INF - assumed 'INF' in /in/q8OPM on line 2 string(3) "INF" Notice: Use of undefined constant INF - assumed 'INF' in /in/q8OPM on line 3 int(0) Notice: Use of undefined constant INF - assumed 'INF' in /in/q8OPM on line 4 bool(false)