3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents("php://filter/read=convert.base64-encode/resource=file:///etc/passwd");
Output for 7.0.20, 7.1.5 - 7.1.10, 7.2.0, 7.2.11 - 7.3.0rc4
cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaApiaW46eDoxOjE6YmluOi9iaW46L3Vzci9iaW4vbm9sb2dpbgpkYWVtb246eDoyOjI6ZGFlbW9uOi86L3Vzci9iaW4vbm9sb2dpbgptYWlsOng6ODoxMjptYWlsOi92YXIvc3Bvb2wvbWFpbDovdXNyL2Jpbi9ub2xvZ2luCmZ0cDp4OjE0OjExOmZ0cDovc3J2L2Z0cDovdXNyL2Jpbi9ub2xvZ2luCmh0dHA6eDozMzozMzpodHRwOi9zcnYvaHR0cDovdXNyL2Jpbi9ub2xvZ2luCm5vYm9keTp4Ojk5Ojk5Om5vYm9keTovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1qb3VybmFsLWdhdGV3YXk6eDoxOTE6MTkxOnN5c3RlbWQtam91cm5hbC1nYXRld2F5Oi86L3Vzci9iaW4vbm9sb2dpbgpzeXN0ZW1kLXRpbWVzeW5jOng6MTkyOjE5MjpzeXN0ZW1kLXRpbWVzeW5jOi86L3Vzci9iaW4vbm9sb2dpbgpzeXN0ZW1kLW5ldHdvcms6eDoxOTM6MTkzOnN5c3RlbWQtbmV0d29yazovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1idXMtcHJveHk6eDoxOTQ6MTk0OnN5c3RlbWQtYnVzLXByb3h5Oi86L3Vzci9iaW4vbm9sb2dpbgpzeXN0ZW1kLXJlc29sdmU6eDoxOTU6MTk1OnN5c3RlbWQtcmVzb2x2ZTovOi91c3IvYmluL25vbG9naW4K
Output for 7.1.20, 7.2.6 - 7.2.8
Warning: file_get_contents(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed path(s): (/tmp:/in) in /in/rCYLV on line 2 Warning: file_get_contents(php://filter/read=convert.base64-encode/resource=file:///etc/passwd): failed to open stream: operation failed in /in/rCYLV on line 2
Output for 5.0.0 - 5.1.1, 5.1.3 - 7.0.14, 7.1.0
cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaApiaW46eDoxOjE6YmluOi9iaW46L3Vzci9iaW4vbm9sb2dpbgpkYWVtb246eDoyOjI6ZGFlbW9uOi86L3Vzci9iaW4vbm9sb2dpbgptYWlsOng6ODoxMjptYWlsOi92YXIvc3Bvb2wvbWFpbDovdXNyL2Jpbi9ub2xvZ2luCmZ0cDp4OjE0OjExOmZ0cDovc3J2L2Z0cDovdXNyL2Jpbi9ub2xvZ2luCmh0dHA6eDozMzozMzpodHRwOi9zcnYvaHR0cDovdXNyL2Jpbi9ub2xvZ2luCnV1aWRkOng6Njg6Njg6dXVpZGQ6LzovdXNyL2Jpbi9ub2xvZ2luCmRidXM6eDo4MTo4MTpkYnVzOi86L3Vzci9iaW4vbm9sb2dpbgpub2JvZHk6eDo5OTo5OTpub2JvZHk6LzovdXNyL2Jpbi9ub2xvZ2luCnN5c3RlbWQtam91cm5hbC1nYXRld2F5Ong6MTkxOjE5MTpzeXN0ZW1kLWpvdXJuYWwtZ2F0ZXdheTovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC10aW1lc3luYzp4OjE5MjoxOTI6c3lzdGVtZC10aW1lc3luYzovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1uZXR3b3JrOng6MTkzOjE5MzpzeXN0ZW1kLW5ldHdvcms6LzovdXNyL2Jpbi9ub2xvZ2luCnN5c3RlbWQtYnVzLXByb3h5Ong6MTk0OjE5NDpzeXN0ZW1kLWJ1cy1wcm94eTovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1yZXNvbHZlOng6MTk1OjE5NTpzeXN0ZW1kLXJlc29sdmU6LzovdXNyL2Jpbi9ub2xvZ2luCg==
Output for 5.1.2
cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaApiaW46eDoxOjE6YmluOi9iaW46L3Vzci9iaW4vbm9sb2dpbgpkYWVtb246eDoyOjI6ZGFlbW9uOi86L3Vzci9iaW4vbm9sb2dpbgptYWlsOng6ODoxMjptYWlsOi92YXIvc3Bvb2wvbWFpbDovdXNyL2Jpbi9ub2xvZ2luCmZ0cDp4OjE0OjExOmZ0cDovc3J2L2Z0cDovdXNyL2Jpbi9ub2xvZ2luCmh0dHA6eDozMzozMzpodHRwOi9zcnYvaHR0cDovdXNyL2Jpbi9ub2xvZ2luCnV1aWRkOng6Njg6Njg6dXVpZGQ6LzovdXNyL2Jpbi9ub2xvZ2luCmRidXM6eDo4MTo4MTpkYnVzOi86L3Vzci9iaW4vbm9sb2dpbgpub2JvZHk6eDo5OTo5OTpub2JvZHk6LzovdXNyL2Jpbi9ub2xvZ2luCnN5c3RlbWQtam91cm5hbC1nYXRld2F5Ong6MTkxOjE5MTpzeXN0ZW1kLWpvdXJuYWwtZ2F0ZXdheTovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC10aW1lc3luYzp4OjE5MjoxOTI6c3lzdGVtZC10aW1lc3luYzovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1uZXR3b3JrOng6MTkzOjE5MzpzeXN0ZW1kLW5ldHdvcms6LzovdXNyL2Jpbi9ub2xvZ2luCnN5c3RlbWQtYnVzLXByb3h5Ong6MTk0OjE5NDpzeXN0ZW1kLWJ1cy1wcm94eTovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1yZXNvbHZlOng6MTk1OjE5NTpzeXN0ZW1kLXJlc29sdmU6LzovdXNyL2Jpbi9ub2xvZ2lu
Output for 4.3.3 - 4.3.8, 4.3.10 - 4.4.9
Warning: file_get_contents(php://filter/read=convert.base64-encode/resource=file:///etc/passwd): failed to open stream: Success in /in/rCYLV on line 2
Output for 4.3.9
Warning: file_get_contents(php://filter/read=convert.base64-encode/resource=file:///etc/passwd): failed to open stream: Cannot allocate memory in /in/rCYLV on line 2
Output for 4.3.2
Warning: file_get_contents(php://filter/read=convert.base64-encode/resource=file:///etc/passwd): failed to open stream: Inappropriate ioctl for device in /in/rCYLV on line 2
Output for 4.3.0 - 4.3.1
Warning: file_get_contents(php://filter/read=convert.base64-encode/resource=file:///etc/passwd) [http://www.php.net/function.file-get-contents]: failed to create stream: Inappropriate ioctl for device in /in/rCYLV on line 2