3v4l.org

run code in 300+ PHP versions simultaneously
<?php class simple_filter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { while ($bucket = stream_bucket_make_writeable($in)) { $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } stream_filter_register("simple", "simple_filter"); $url = "http://google.com"; file_get_contents("php://filter/read=simple/resource=http://google.com");
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of simple_filter::filter($in, $out, &$consumed, $closing) should either be compatible with php_user_filter::filter($in, $out, &$consumed, bool $closing): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/tf2i1 on line 6 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/tf2i1 on line 18 Warning: file_get_contents(php://filter/read=simple/resource=http://google.com): Failed to open stream: operation failed in /in/tf2i1 on line 18

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
53.36 ms | 402 KiB | 8 Q