3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents('/tmp/foo'); ?>
Output for 4.3.2 - 5.5.24, 5.6.11, 7.0.14 - 7.3.0rc4
Warning: file_get_contents(/tmp/foo): failed to open stream: No such file or directory in /in/WScbN on line 2
Output for 5.5.25 - 5.5.34, 5.6.8 - 5.6.10, 5.6.12 - 7.0.6
-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDAO3Um1IWsIBORKVLRhiGSkAfbVnAEOOkXRCnuTV521/RA6jAH 1YqzOPIsJK733z9WB4hRsJapoFnxyew8JeBGvxAAvf0BOoJnGqLhtgqLTm8db+hq 2/BDdTnMBycdqjZdzL9uZYudPpzaznHgor/c8xzxsEBQqy1lLBkPxru/IQIDAQAB AoGBAI9rzPwrk4/YXsDvE9s/N80hqLr8wpZj34R8Vsx07QW+GX5VO4Cc0d7lnclR lTlaVubYt9w65C2qdXDwNlCp8amL1iPz4TCqFewwFIzyGoGmwLeLcUxaJ9edBP4W p6jZmk0VcctND3kqFIvNFeEOxQUt2OXK99cPXp9QcictxnwBAkEA4NhUYWXyEtfI XWxp9Qx9yd54fc/QMD2k/D1XEIEZvQBxYyaG33LtwIWC+sERjYU5fC3kCuLzYodi QrDRXgvz9wJBANreSs0mSA8r2AGQnpaQ4Z2u+lO5pwI1tZFMEEuPkVK5ElyI+/g3 0LL2OSif0Ds6iLogiscNcAKrzGHxq3o076cCQQCSAUhB+w5H2CF/MRBZFSR1uuZp ZFIfkVgah8aKrBrHlYsLxI/ed+YVl10nccnxKSrcDXzA6QD84UcYYXODa6WfAkBc 41bPtl2CwtLL5zrHH/oA2BA5lGNC1tSWM7f+uZGtkAow55o4gEe8jC86BIl1eaQp ikIbtKJDH/J/5vclyG2lAkA+Q/DrteU6a3IM0S9nrsxKf321Cp6YoFOGSHG5sXh8 nu+WEYJeKrOGdh1tzsFT9m6khNhMm3g8yFah7WK8pDtu -----END RSA PRIVATE KEY-----
Output for 5.5.35
-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDAO3Um1IWsIBORKVLRhiGSkAfbVnAEOOkXRCnuTV521/RA6jAH 1YqzOPIsJK733z9WB4hRsJapoFnxyew8JeBGvxAAvf0BOoJnGqLhtgqLTm8db+hq 2/BDdTnMBycdqjZdzL9uZYudPpzaznHgor/c8xzxsEBQqy1lLBkPxru/IQIDAQAB AoGBAI9rzPwrk4/YXsDvE9s/N80hqLr8wpZj34R8Vsx07QW+GX5VO4Cc0d7lnclR lTlaVubYt9w65C2qdXDwNlCp8amL1iPz4TCqFewwFIzyGoGmwLeLcUxaJ9edBP4W p6jZmk0VcctND3kqFIvNFeEOxQUt2OXK99cPXp9QcictxnwBAkEA4NhUYWXyEtfI XWxp9Qx9yd54fc/QMD2k/D1XEIEZvQBxYyaG33LtwIWC+sERjYU5fC3kCuLzYodi QrDRXgvz9wJBANreSs0mSA8r2AGQnpaQ4Z2u+lO5pwI1tZFMEEuPkVK5ElyI+/g3 0LL2OSif0Ds6iLogiscNcAKrzGHxq3o076cCQQCSAUhB+w5H2CF/MRBZFSR1uuZp ZFIfkVgah8aKrBrHlYsLxI/ed+YVl10nccnxKSrcDXzA6QD84UcYYXODa6WfAkBc 41bPtl2CwtLL5zrHH/oA2BA5lGNC1tSWM7f+uZGtkAow55o4gEe8jC86BIl1eaQp ikIbtKJDH/J/5vclyG2lAkA+Q/DrteU6a3IM0S9nrsxKf321Cp6YoFOGSHG5sXh8 nu+WEYJeKrOGdh1tzsFT9m6khNhMm3g8yFah7WK8pDtu -----END RSA PRIVATE KEY-----
Output for 4.3.0 - 4.3.1
Warning: file_get_contents(/tmp/foo) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/WScbN on line 2