3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('hoge',1); $all = get_defined_constants(TRUE); var_dump( $all['user'] );
Output for 5.0.0 - 7.1.0
array(1) { ["hoge"]=> int(1) }
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for get_defined_constants() in /in/tuVHX on line 3 NULL