3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once '/in/Bg0hc'; $uri1 = new uri('ftp://jdoe:pass1234@my-server.com/public_html'); // Lets upgrade to an admin account under sftp, but stay in the current directory. $uri1->chain()-> prepend('SCHEME_NAME', 's')-> replace('PORT', '22')-> replace('USER', 'admin')-> replace('PASS', 'secure-pass-123'); // NOTE: chain() methods always return the chain object, even if a method fails. echo $uri1;
Output for 5.6.28, 7.0.14 - 7.1.0
Warning: require_once(/in/Bg0hc): failed to open stream: No such file or directory in /in/lv1L3 on line 3 Fatal error: require_once(): Failed opening required '/in/Bg0hc' (include_path='.:') in /in/lv1L3 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.25, 7.0.0 - 7.0.10
sftp://admin:secure-pass-123@my-server.com:22/public_html
Output for hhvm-3.12.0
Fatal error: Uncaught Error: File not found: /in/Bg0hc in /in/lv1L3:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: File not found: /in/Bg0hc in /in/lv1L3 on line 3
Process exited with code 255.