3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php include_once '/in/kX143'; $uri1 = new uri('example.com/original/path'); echo $uri1->replace('PATH', '/alternative/path');
Output for 7.0.0 - 7.1.0
Warning: include_once(/in/kX143): failed to open stream: No such file or directory in /in/0I9e6 on line 3 Warning: include_once(): Failed opening '/in/kX143' for inclusion (include_path='.:') in /in/0I9e6 on line 3 Fatal error: Uncaught Error: Class 'uri' not found in /in/0I9e6:6 Stack trace: #0 {main} thrown in /in/0I9e6 on line 6
Process exited with code 255.
Output for hhvm-3.12.0
Warning: File not found: /in/kX143 in /in/0I9e6 on line 3 Fatal error: Uncaught Error: Class undefined: uri in /in/0I9e6:6 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Warning: File not found: /in/kX143 in /in/0I9e6 on line 3 Fatal error: Class undefined: uri in /in/0I9e6 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Warning: include_once(/in/kX143): failed to open stream: No such file or directory in /in/0I9e6 on line 3 Warning: include_once(): Failed opening '/in/kX143' for inclusion (include_path='.:') in /in/0I9e6 on line 3 Fatal error: Class 'uri' not found in /in/0I9e6 on line 6
Process exited with code 255.