3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $expr = 1.0/0.0; if (is_finite( $expr ) == 0 ) { echo 'finite'; } else if (is_infinite( $expr )){ echo INF; } else { echo !(is_infinite($expr))? INF : 'not infinite'; }

preferences:
55.2 ms | 402 KiB | 5 Q