3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents("php://filter/convert.base64-encode/resource=index");
based on J3s6A
Output for 7.3.0rc3
Warning: file_get_contents(): open_basedir restriction in effect. File(index) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Ha82e on line 3 Warning: file_get_contents(php://filter/convert.base64-encode/resource=index): failed to open stream: operation failed in /in/Ha82e on line 3
Output for 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: file_get_contents(php://filter/convert.base64-encode/resource=index): failed to open stream: operation failed in /in/Ha82e on line 3
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): open_basedir restriction in effect. File(index) is not within the allowed path(s): (/tmp:/in) in /in/Ha82e on line 3 Warning: file_get_contents(php://filter/convert.base64-encode/resource=index): failed to open stream: operation failed in /in/Ha82e on line 3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Warning: file_get_contents(): open_basedir restriction in effect. File(index) is not within the allowed path(s): (/tmp/) in /in/Ha82e on line 3 Warning: file_get_contents(php://filter/convert.base64-encode/resource=index): failed to open stream: operation failed in /in/Ha82e on line 3
Output for hhvm-3.15.4
Warning: No such file or directory in /in/Ha82e on line 3