3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //define("true",false); -- notice: Constant already defined ... define("TRUE", "love"); echo defined("TRUE"),TRUE; echo "\nUDEF TRUE: ",constant("TRUE"); echo "\n",defined("true"),true;
Output for 5.1.3 - 7.1.0
11 UDEF TRUE: love 11
Output for 4.3.0 - 5.1.2
1love UDEF TRUE: love 11