3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = fopen('php://memory', "a"); var_dump(stream_get_meta_data($s['stream_type']));
based on cnmg1
Output for 5.3.0 - 7.2.6
Warning: stream_get_meta_data() expects parameter 1 to be resource, null given in /in/4ToIP on line 4 NULL
Output for 5.1.4 - 5.2.17
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /in/4ToIP on line 4 bool(false)
Output for 5.0.0 - 5.1.3
Warning: fopen(php://memory): failed to open stream: Inappropriate ioctl for device in /in/4ToIP on line 3 Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /in/4ToIP on line 4 bool(false)
Output for 4.3.5 - 4.4.9
Warning: fopen(php://memory): failed to open stream: Success in /in/4ToIP on line 3 Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /in/4ToIP on line 4 bool(false)
Output for 4.3.3 - 4.3.4
Warning: fopen(php://memory): failed to open stream: Success in /in/4ToIP on line 3 Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /in/4ToIP on line 4 NULL
Output for 4.3.2
Warning: fopen(php://memory): failed to open stream: Inappropriate ioctl for device in /in/4ToIP on line 3 Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /in/4ToIP on line 4 NULL
Output for 4.3.0 - 4.3.1
Warning: fopen(php://memory) [http://www.php.net/function.fopen]: failed to create stream: Inappropriate ioctl for device in /in/4ToIP on line 3 Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /in/4ToIP on line 4 NULL