3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(0); $r = 1.0/0.0; if ( is_finite($r) ) { if (is_bool($r) && $r === FALSE) { echo 'not infinite'; } } else if (is_infinite( $r )){ echo INF; }
based on Ehve9
Output for 7.0.0 - 7.2.0
INF
Output for 5.3.19 - 5.6.28
not infinite