3v4l.org

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