3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: include(): open_basedir restriction in effect. File(includes/config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/QS0TB on line 2 Warning: include(includes/config.php): Failed to open stream: Operation not permitted 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(): open_basedir restriction in effect. File(includes/functions.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/QS0TB on line 3 Warning: include(includes/functions.php): Failed to open stream: Operation not permitted in /in/QS0TB on line 3 Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Warning: Undefined array key "REQUEST_URI" in /in/QS0TB on line 5 Warning: Undefined variable $domaintoproxy in /in/QS0TB on line 6 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated 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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
Warning: include(): open_basedir restriction in effect. File(includes/config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/QS0TB on line 2 Warning: include(includes/config.php): Failed to open stream: Operation not permitted 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(): open_basedir restriction in effect. File(includes/functions.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/QS0TB on line 3 Warning: include(includes/functions.php): Failed to open stream: Operation not permitted in /in/QS0TB on line 3 Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.:') in /in/QS0TB on line 3 Warning: Undefined array key "REQUEST_URI" in /in/QS0TB on line 5 Warning: 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 8.0.13
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 Warning: Undefined array key "REQUEST_URI" in /in/QS0TB on line 5 Warning: 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 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.4.33
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 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: include(): open_basedir restriction in effect. File(includes/config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/QS0TB on line 2 Warning: include(includes/config.php): failed to open stream: Operation not permitted 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(): open_basedir restriction in effect. File(includes/functions.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/QS0TB on line 3 Warning: include(includes/functions.php): failed to open stream: Operation not permitted 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 7.3.32 - 7.3.33
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 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 7.1.20
Warning: include(): open_basedir restriction in effect. File(includes/config.php) is not within the allowed path(s): (/tmp:/in) in /in/QS0TB on line 2 Warning: include(includes/config.php): failed to open stream: Operation not permitted 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(): open_basedir restriction in effect. File(includes/functions.php) is not within the allowed path(s): (/tmp:/in) in /in/QS0TB on line 3 Warning: include(includes/functions.php): failed to open stream: Operation not permitted 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.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.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.1.6, 5.2.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.3.11, 4.4.0 - 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

preferences:
286.97 ms | 403 KiB | 399 Q