3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(@__TRAIT__ == '__TRAIT__'){ echo 'magic __TRAIT__ constant NOT defined'; //insert this code where needed, remember that because they are MAGIC constants defining __TRAIT__ is completely useless }echo{ echo 'magic __TRAIT__ constant IS defined'; }
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected '{' in /in/M6Hlm on line 5
Process exited with code 255.