3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require basename($_GET['filename']);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: filename in /in/JXRPu on line 2 Warning: require(): Filename cannot be empty in /in/JXRPu on line 2 Fatal error: require(): Failed opening required '' (include_path='.:') in /in/JXRPu on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: filename in /in/JXRPu on line 2 Fatal error: File not found: in /in/JXRPu on line 2
Process exited with code 255.
Output for 5.2.9 - 5.2.17
Notice: Undefined index: filename in /in/JXRPu on line 2 Warning: require(): Filename cannot be empty in /in/JXRPu on line 2 Fatal error: require(): Failed opening required '' (include_path='.:') in /in/JXRPu on line 2
Process exited with code 255.
Output for 5.1.0 - 5.2.8
Notice: Undefined index: filename in /in/JXRPu on line 2 Fatal error: require(): Failed opening required '' (include_path='.:') in /in/JXRPu on line 2
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Notice: Undefined index: filename in /in/JXRPu on line 2 Fatal error: main(): Failed opening required '' (include_path='.:') in /in/JXRPu on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined index: filename in /in/JXRPu on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required '' (include_path='.:') in /in/JXRPu on line 2