3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $content = file_get_contents(__FILE__); $h = fopen('php://temp', 'r+b'); fwrite($h, $content); rewind($h); var_dump(spl_object_hash($h)); $h2 = fopen('php://temp', 'r+b'); fwrite($h2, 'Nenenenenenenen'); rewind($h2); var_dump(fread($h, 20)); var_dump(fread($h2, 20));
based on DX7sd
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Warning: spl_object_hash() expects parameter 1 to be object, resource given in /in/GuQLv on line 9 NULL string(20) "<?php $content = fi" string(15) "Nenenenenenenen"