3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $constant = 'NaN'; if (defined($constant) && ! is_scalar(constant($constant)) && ! is_resource(constant($constant))) { echo "Yes, I am non-scalar and non-resource constant!\n";}
Output for 4.3.0 - 7.1.0