3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace FOO; function __DIR__(){}
based on V09Vq
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected '__DIR__' (T_DIR), expecting '(' in /in/ZPr4Z on line 4
Process exited with code 255.