3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = (fopen('php://temp', 'r+'));
Output for 5.1.4 - 7.1.0
Output for 5.0.0 - 5.1.3
<br /> <b>Warning</b>: fopen(php://temp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Inappropriate ioctl for device in <b>/in/tZ3m3</b> on line <b>3</b><br />
Output for 4.4.3 - 4.4.9
<br /> <b>Warning</b>: fopen(php://temp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Success in <b>/in/tZ3m3</b> on line <b>3</b><br />
Output for 4.3.3 - 4.3.8, 4.3.10 - 4.4.2
<br /> <b>Warning</b>: fopen(php://temp): failed to open stream: Success in <b>/in/tZ3m3</b> on line <b>3</b><br />
Output for 4.3.9
<br /> <b>Warning</b>: fopen(php://temp): failed to open stream: Cannot allocate memory in <b>/in/tZ3m3</b> on line <b>3</b><br />
Output for 4.3.2
<br /> <b>Warning</b>: fopen(php://temp): failed to open stream: Inappropriate ioctl for device in <b>/in/tZ3m3</b> on line <b>3</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: fopen(php://temp) [<a href='http://www.php.net/function.fopen'>function.fopen</a>]: failed to create stream: Inappropriate ioctl for device in <b>/in/tZ3m3</b> on line <b>3</b><br />