3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Exemple of http://php.net/filters class l33t_filter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { $common = ["a", "e", "s", "S", "A", "o", "O", "t", "l", "ph", "y", "H", "W", "M", "D", "V", "x"]; $leet = ["4", "3", "z", "Z", "4", "0", "0", "+", "1", "f", "j", "|-|", "\\/\\/", "|\\/|", "|)", "\\/", "><"]; while ($bucket = stream_bucket_make_writeable($in)) { $bucket->data = str_replace($common, $leet, $bucket->data); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } stream_filter_register('l33t_filter', 'l33t_filter') or die('Failed to register filter Markdown'); file_put_contents('php://filter/l33t_filter/resource=php://output', 'Salut ça va?');
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of l33t_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/Zpgr8 on line 5 Z41u+ ç4 v4?

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