<?php $x = sqrt(-1);var_dump($x);var_dump(is_nan($x));var_dump(is_numeric($x));
Standard input is empty
float(NAN) bool(true) bool(true)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!