3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $local_framework = array_pop(explode("/", trim(__DIR__, "/")));
based on CHeWc
Output for 7.0.0 - 7.1.0
Notice: Only variables should be passed by reference in /in/8YTEE on line 3
Output for 5.3.0 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/8YTEE on line 3
Output for 5.1.0 - 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/8YTEE on line 3 Strict Standards: Only variables should be passed by reference in /in/8YTEE on line 3
Output for 5.0.5
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/8YTEE on line 3 Fatal error: Only variables can be passed by reference in /in/8YTEE on line 3
Process exited with code 255.
Output for 4.3.0 - 5.0.4
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/8YTEE on line 3