3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php include 'foo.php'; use Bar;
Output for 5.3.28 - 5.3.29, 5.4.18 - 7.2.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 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