3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define(FD, fopen('/dev/null','rw')); stream_filter_append(FD, "any_user_filter");
Output for 7.3.0rc3 - 7.3.0rc4
Warning: Use of undefined constant FD - assumed 'FD' (this will throw an Error in a future version of PHP) in /in/OvLG8 on line 2 Warning: fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in:/etc) in /in/OvLG8 on line 2 Warning: fopen(/dev/null): failed to open stream: Operation not permitted in /in/OvLG8 on line 2 Warning: stream_filter_append() expects parameter 1 to be resource, bool given in /in/OvLG8 on line 3
Output for 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: Use of undefined constant FD - assumed 'FD' (this will throw an Error in a future version of PHP) in /in/OvLG8 on line 2 Warning: stream_filter_append(): unable to locate filter "any_user_filter" in /in/OvLG8 on line 3
Output for 7.2.6
Warning: Use of undefined constant FD - assumed 'FD' (this will throw an Error in a future version of PHP) in /in/OvLG8 on line 2 Warning: fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in) in /in/OvLG8 on line 2 Warning: fopen(/dev/null): failed to open stream: Operation not permitted in /in/OvLG8 on line 2 Warning: stream_filter_append() expects parameter 1 to be resource, boolean given in /in/OvLG8 on line 3
Output for 7.1.20
Notice: Use of undefined constant FD - assumed 'FD' in /in/OvLG8 on line 2 Warning: fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in) in /in/OvLG8 on line 2 Warning: fopen(/dev/null): failed to open stream: Operation not permitted in /in/OvLG8 on line 2 Warning: stream_filter_append() expects parameter 1 to be resource, boolean given in /in/OvLG8 on line 3
Output for 4.4.3 - 4.4.9, 5.1.5 - 5.6.30, 7.0.0 - 7.1.10
Notice: Use of undefined constant FD - assumed 'FD' in /in/OvLG8 on line 2 Warning: stream_filter_append(): unable to locate filter "any_user_filter" in /in/OvLG8 on line 3
Output for hhvm-3.10.1 - 3.17.3
Notice: Use of undefined constant FD - assumed 'FD' in /in/OvLG8 on line 2 Warning: Constants may only evaluate to scalar values in /in/OvLG8 on line 2 Notice: Use of undefined constant FD - assumed 'FD' in /in/OvLG8 on line 3 Warning: stream_filter_append() expects parameter 1 to be resource, string given in /in/OvLG8 on line 3
Output for 4.3.2 - 4.4.2, 5.0.0 - 5.1.4
Notice: Use of undefined constant FD - assumed 'FD' in /in/OvLG8 on line 2 Warning: stream_filter_append(): unable to create or locate filter "any_user_filter" in /in/OvLG8 on line 3
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant FD - assumed 'FD' in /in/OvLG8 on line 2 Warning: stream_filter_append() [http://www.php.net/function.stream-filter-append]: unable to create or locate filter "any_user_filter" in /in/OvLG8 on line 3