3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_error_handler (function($errno, $errstr, $errfile, $errline) { var_dump($errno); }); require('/etc/passwdx'); var_dump('yay');
based on bReOA
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.8, 7.3.0alpha1 - 7.3.0rc3
int(2) Fatal error: require(): Failed opening required '/etc/passwdx' (include_path='.:') in /in/UPSbg on line 7
Process exited with code 255.
Output for 7.1.20 - 7.2.6
int(2) int(2) Fatal error: require(): Failed opening required '/etc/passwdx' (include_path='.:') in /in/UPSbg on line 7
Process exited with code 255.
Output for hhvm-3.18.4 - 3.21.0
Fatal error: Uncaught Error: require(/etc/passwdx): File not found in /in/UPSbg:7 Stack trace: #0 {main}
Process exited with code 255.