3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=66182 class before_body_foo_filter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { // this exit; causes a segfault exit; } } stream_filter_register('before_body_foo', 'before_body_foo_filter'); $fp = fopen('php://output', 'w'); stream_filter_append($fp, 'before_body_foo', STREAM_FILTER_WRITE, 'YES'); fwrite($fp, 'hello');
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of before_body_foo_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/c57Ls on line 6 Warning: fwrite(): Unprocessed filter buckets remaining on input brigade in /in/c57Ls on line 17

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:
42.89 ms | 402 KiB | 8 Q