run code in 200+ 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.2.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