3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "https://files.justimmo.at/public/pic/small/AYVHEJz-jk.jpg"; $parts = parse_url($url); $path = explode('/',$parts['path']); $path[1] = 'orig'; $parts['path'] = implode('/',$path); echo http_build_url($parts);
based on ECCEq
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function http_build_url() in /in/tfX3j:10 Stack trace: #0 {main} thrown in /in/tfX3j on line 10
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function http_build_url() in /in/tfX3j on line 10
Process exited with code 255.