3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Include http library include("LIB_http.php"); # Define the target and referrer web pages $target = "http://www.schrenk.com/publications.php"; $ref = "http://www.schrenk.com"; # Request the header $return_array = http_get_withheader($target, $ref); # Display the header echo "FILE CONTENTS \n"; var_dump($return_array['FILE']); echo "ERRORS \n"; var_dump($return_array['ERROR']); echo "STATUS \n"; var_dump($return_array['STATUS']); ?>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 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(LIB_http.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lrUkR on line 3 Warning: include(LIB_http.php): Failed to open stream: Operation not permitted in /in/lrUkR on line 3 Warning: include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Uncaught Error: Call to undefined function http_get_withheader() in /in/lrUkR:10 Stack trace: #0 {main} thrown in /in/lrUkR on line 10
Process exited with code 255.
Output for 8.0.13
Warning: include(LIB_http.php): Failed to open stream: No such file or directory in /in/lrUkR on line 3 Warning: include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Uncaught Error: Call to undefined function http_get_withheader() in /in/lrUkR:10 Stack trace: #0 {main} thrown in /in/lrUkR on line 10
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
Warning: include(LIB_http.php): failed to open stream: No such file or directory in /in/lrUkR on line 3 Warning: include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Uncaught Error: Call to undefined function http_get_withheader() in /in/lrUkR:10 Stack trace: #0 {main} thrown in /in/lrUkR on line 10
Process exited with code 255.
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: include(): open_basedir restriction in effect. File(LIB_http.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lrUkR on line 3 Warning: include(LIB_http.php): failed to open stream: Operation not permitted in /in/lrUkR on line 3 Warning: include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Uncaught Error: Call to undefined function http_get_withheader() in /in/lrUkR:10 Stack trace: #0 {main} thrown in /in/lrUkR on line 10
Process exited with code 255.
Output for 7.1.20, 7.2.6
Warning: include(): open_basedir restriction in effect. File(LIB_http.php) is not within the allowed path(s): (/tmp:/in) in /in/lrUkR on line 3 Warning: include(LIB_http.php): failed to open stream: Operation not permitted in /in/lrUkR on line 3 Warning: include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Uncaught Error: Call to undefined function http_get_withheader() in /in/lrUkR:10 Stack trace: #0 {main} thrown in /in/lrUkR on line 10
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.21
Warning: include(LIB_http.php): failed to open stream: No such file or directory in /in/lrUkR on line 3 Warning: include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Call to undefined function http_get_withheader() in /in/lrUkR on line 10
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: main(LIB_http.php): failed to open stream: No such file or directory in /in/lrUkR on line 3 Warning: main(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Call to undefined function http_get_withheader() in /in/lrUkR on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: main(LIB_http.php): failed to open stream: No such file or directory in /in/lrUkR on line 3 Warning: main(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Call to undefined function: http_get_withheader() in /in/lrUkR on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Warning: main(LIB_http.php): failed to open stream: No such file or directory in /in/lrUkR on line 3 Warning: main(): Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Call to undefined function: http_get_withheader() in /in/lrUkR on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(LIB_http.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/lrUkR on line 3 Warning: main() [http://www.php.net/function.main]: Failed opening 'LIB_http.php' for inclusion (include_path='.:') in /in/lrUkR on line 3 Fatal error: Call to undefined function: http_get_withheader() in /in/lrUkR on line 10

preferences:
250.51 ms | 402 KiB | 340 Q