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 8.1.0 - 8.1.17, 8.2.0 - 8.2.4
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?
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.13 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.28
Z41u+ ç4 v4?
Output for 7.0.12
Z41u+ ç4 v4? Warning: file_put_contents(): Only 139654372716760 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.11
Z41u+ ç4 v4? Warning: file_put_contents(): Only 140330838454488 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.10
Z41u+ ç4 v4? Warning: file_put_contents(): Only 140418365190360 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.9
Z41u+ ç4 v4? Warning: file_put_contents(): Only 140181605011672 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.8
Z41u+ ç4 v4? Warning: file_put_contents(): Only 139634728587480 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.7
Z41u+ ç4 v4? Warning: file_put_contents(): Only 139797419348184 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.6
Z41u+ ç4 v4? Warning: file_put_contents(): Only 140625496592600 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.5
Z41u+ ç4 v4? Warning: file_put_contents(): Only 139648995512536 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.4
Z41u+ ç4 v4? Warning: file_put_contents(): Only 139880556744920 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.3
Z41u+ ç4 v4? Warning: file_put_contents(): Only 140331029188824 of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.2
Z41u+ ç4 v4? Warning: file_put_contents(): Only 0x7fe21f4550d8l of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.1
Z41u+ ç4 v4? Warning: file_put_contents(): Only 0x7f90464550d8l of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 7.0.0
Z41u+ ç4 v4? Warning: file_put_contents(): Only 0x7f60cfa550d8l of 13 bytes written, possibly out of free disk space in /in/Zpgr8 on line 20
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Zpgr8 on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/Zpgr8 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Zpgr8 on line 7
Process exited with code 255.

preferences:
76.92 ms | 430 KiB | 5 Q