3v4l.org

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