3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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']); ?>
based on hjqT0
Output for 7.0.0 - 7.2.0
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 5.1.0 - 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.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