3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php include 'foo.php'; use Bar;
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Warning: The use statement with non-compound name 'Bar' has no effect in /in/MPkXr on line 4 Warning: include(foo.php): failed to open stream: No such file or directory in /in/MPkXr on line 3 Warning: include(): Failed opening 'foo.php' for inclusion (include_path='.:') in /in/MPkXr on line 3
Output for hhvm-3.12.0
Warning: File not found: foo.php in /in/MPkXr on line 3
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Warning: The use statement with non-compound name 'Bar' has no effect in /in/Dt9jI on line 4 Warning: include(foo.php): failed to open stream: No such file or directory in /in/Dt9jI on line 3 Warning: include(): Failed opening 'foo.php' for inclusion (include_path='.:') in /in/Dt9jI on line 3