3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('T_DIR', '/some/dir'); var_dump(T_DIR);
Output for 7.0.0 - 7.1.0
Notice: Constant T_DIR already defined in /in/dM3br on line 2 int(372)
Output for 5.6.0 - 5.6.28
Notice: Constant T_DIR already defined in /in/dM3br on line 2 int(387)
Output for 5.5.0 - 5.5.38
Notice: Constant T_DIR already defined in /in/dM3br on line 2 int(385)
Output for 5.4.0 - 5.4.45
Notice: Constant T_DIR already defined in /in/dM3br on line 2 int(383)
Output for 5.3.0 - 5.3.29
Notice: Constant T_DIR already defined in /in/dM3br on line 2 int(379)
Output for 4.3.0 - 5.2.17
string(9) "/some/dir"