3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r=(int)INF; var_dump($r);
based on bDd6W
Output for 4.3.6 - 5.0.1, 5.0.3 - 5.4.45, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(0)
Output for 5.5.24 - 5.6.28
int(-9223372036854775808)
Output for 5.0.2
int(9223372036854775807)
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant INF - assumed 'INF' in /in/oa3td on line 2 int(0)