3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class x { static function y() { include '/tmp/asdf.php'; } } x::y();
based on AEfHW
Output for 5.3.20 - 5.5.24, 5.5.29, 5.5.32, 5.5.35, 5.6.11, 5.6.13, 5.6.19 - 7.0.2, 7.0.4 - 7.0.5, 7.0.20 - 7.2.0
Warning: include(/tmp/asdf.php): failed to open stream: No such file or directory in /in/cGuFA on line 7 Warning: include(): Failed opening '/tmp/asdf.php' for inclusion (include_path='.:') in /in/cGuFA on line 7
Output for 5.5.25 - 5.5.28, 5.5.30 - 5.5.31, 5.5.33 - 5.5.34, 5.6.8 - 5.6.10, 5.6.12, 5.6.14 - 5.6.18, 7.0.3, 7.0.6