3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('OK', function_exists('ok')); var_dump( OK ); //Fatal error: Constant expression contains invalid operations in /in/tOnQh on line 7 //Process exited with code 255. //class A{ const OK = function_exists('ok'); } //var_dump( A::OK );
based on tOnQh
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
bool(false)