3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php #namespace Foo; echo '"', __NAMESPACE__, '"';
Output for 5.3.0 - 7.1.0
""
Output for 4.3.0 - 5.2.17
" Notice: Use of undefined constant __NAMESPACE__ - assumed '__NAMESPACE__' in /in/ph2gW on line 3 __NAMESPACE__"