3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $handle = fopen ('php://temp', 'r'); fclose($handle); var_dump(fwrite($handle, 'test'));
based on Xa0Bs
Output for 7.0.0 - 7.2.0
Warning: fwrite(): supplied resource is not a valid stream resource in /in/gDEoD on line 5 bool(false)
Output for 5.3.20 - 5.6.28
Warning: fwrite(): 5 is not a valid stream resource in /in/gDEoD on line 5 bool(false)