3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get() { return SOME_CONST; } define('sOmE_CoNsT', 1, true); echo get(); // Prints 1 define('SOME_CONST', 2); echo get(); // Prints 2
based on 8atvM