3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($_SERVER); $f = fopen('http://213.180.204.3/','r') ; $data = $f.read(); var_dump($data);
Output for 8.0.13 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
array(17) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/hisRd" ["SCRIPT_NAME"]=> string(9) "/in/hisRd" ["SCRIPT_FILENAME"]=> string(9) "/in/hisRd" ["PATH_TRANSLATED"]=> string(9) "/in/hisRd" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1350565907.0001) ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): Failed to open stream: operation failed in /in/hisRd on line 3 Fatal error: Uncaught Error: Call to undefined function read() in /in/hisRd:4 Stack trace: #0 {main} thrown in /in/hisRd on line 4
Process exited with code 255.
Output for 8.0.0 - 8.0.12
array(17) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/hisRd" ["SCRIPT_NAME"]=> string(9) "/in/hisRd" ["SCRIPT_FILENAME"]=> string(9) "/in/hisRd" ["PATH_TRANSLATED"]=> string(9) "/in/hisRd" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1350565907.0001) ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): Failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Uncaught Error: Call to undefined function read() in /in/hisRd:4 Stack trace: #0 {main} thrown in /in/hisRd on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.26 - 7.4.33
array(17) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/hisRd" ["SCRIPT_NAME"]=> string(9) "/in/hisRd" ["SCRIPT_FILENAME"]=> string(9) "/in/hisRd" ["PATH_TRANSLATED"]=> string(9) "/in/hisRd" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1350565907.0001) ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: operation failed in /in/hisRd on line 3 Fatal error: Uncaught Error: Call to undefined function read() in /in/hisRd:4 Stack trace: #0 {main} thrown in /in/hisRd on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25
array(17) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/hisRd" ["SCRIPT_NAME"]=> string(9) "/in/hisRd" ["SCRIPT_FILENAME"]=> string(9) "/in/hisRd" ["PATH_TRANSLATED"]=> string(9) "/in/hisRd" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1350565907.0001) ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Uncaught Error: Call to undefined function read() in /in/hisRd:4 Stack trace: #0 {main} thrown in /in/hisRd on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
array(17) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/hisRd" ["SCRIPT_NAME"]=> string(9) "/in/hisRd" ["SCRIPT_FILENAME"]=> string(9) "/in/hisRd" ["PATH_TRANSLATED"]=> string(9) "/in/hisRd" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1350565907.0001) ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function read() in /in/hisRd on line 4
Process exited with code 255.
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29
array(16) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/hisRd" ["SCRIPT_NAME"]=> string(9) "/in/hisRd" ["SCRIPT_FILENAME"]=> string(9) "/in/hisRd" ["PATH_TRANSLATED"]=> string(9) "/in/hisRd" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function read() in /in/hisRd on line 4
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
array(12) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["REQUEST_TIME"]=> int(1350565907) ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function read() in /in/hisRd on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5
array(11) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function read() in /in/hisRd on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
array(11) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function: read() in /in/hisRd on line 4
Process exited with code 255.
Output for 4.3.3 - 4.3.11, 4.4.0 - 4.4.4
array(11) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function: read() in /in/hisRd on line 4
Process exited with code 255.
Output for 4.3.2
array(11) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen(): php_hostconnect: connect failed in /in/hisRd on line 3 Warning: fopen(http://213.180.204.3/): failed to open stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function: read() in /in/hisRd on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(11) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/hisRd" } ["argc"]=> int(1) } Warning: fopen() [http://www.php.net/function.fopen]: php_hostconnect: connect failed in /in/hisRd on line 3 Warning: fopen(http://213.180.204.3/) [http://www.php.net/function.fopen]: failed to create stream: Network is unreachable in /in/hisRd on line 3 Fatal error: Call to undefined function: read() in /in/hisRd on line 4

preferences:
270.85 ms | 403 KiB | 465 Q