3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php include("includes/config.php"); include("includes/functions.php"); $scriptname = $_SERVER['SCRIPT_NAME']; $loadurl = $_SERVER["REQUEST_URI"]; $loadurl = str_replace("$scriptname", "http://$domaintoproxy/s/", $loadurl); $loadurl = search_curl($loadurl); $loadurl = remove_bloat("$loadurl"); $loadurl = str_replace("thepiratebay.se", "", $loadurl); $loadurl = str_replace(" ", "+", $loadurl); $loadurl = nl2br("$loadurl"); $regex = '/Location:+(.*)<br \/>/'; preg_match($regex,$loadurl,$match); $loadurl = $match[1]; $loadurl = str_replace(",200", "", $loadurl); $loadurl = str_replace("+/search/", "/?load=/search/", $loadurl); $loadurl = str_replace("/0/99/", "/0/7/", $loadurl); @header("Location: $loadurl"); exit; ?>
Output for 7.0.0 - 7.1.0
Warning: include(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: include(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: include(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Uncaught Error: Call to undefined function search_curl() in /in/QS0TB:7 Stack trace: #0 {main} thrown in /in/QS0TB on line 7
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Warning: include(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: include(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: include(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: include(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: include(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: include(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 5.1.0 - 5.2.2
Warning: include(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: include(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: include(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: SCRIPT_NAME in /in/QS0TB on line 4 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 5.0.4 - 5.0.5
Warning: main(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: main(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: main(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: SCRIPT_NAME in /in/QS0TB on line 4 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Warning: main(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: main(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: main(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: SCRIPT_NAME in /in/QS0TB on line 4 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: main(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: main(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: main(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: SCRIPT_NAME in /in/QS0TB on line 4 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function: search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: main(includes/config.php): failed to open stream: No such file or directory in /in/QS0TB on line 2 Warning: main(): Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: main(includes/functions.php): failed to open stream: No such file or directory in /in/QS0TB on line 3 Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: SCRIPT_NAME in /in/QS0TB on line 4 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function: search_curl() in /in/QS0TB on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(includes/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/QS0TB on line 2 Warning: main() [http://www.php.net/function.main]: Failed opening 'includes/config.php' for inclusion (include_path='.:') in /in/QS0TB on line 2 Warning: main(includes/functions.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/QS0TB on line 3 Warning: main() [http://www.php.net/function.main]: Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Notice: Undefined index: SCRIPT_NAME in /in/QS0TB on line 4 Notice: Undefined index: REQUEST_URI in /in/QS0TB on line 5 Notice: Undefined variable: domaintoproxy in /in/QS0TB on line 6 Fatal error: Call to undefined function: search_curl() in /in/QS0TB on line 7