3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fp = fopen('php://temp', 'r+'); fwrite($fp, implode('","', array('jajaja', false, 'lala'))); rewind($fp); var_dump(fgets($fp));
based on qGViQ
Output for 5.1.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(16) "jajaja","","lala"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.3
Warning: fopen(php://temp): failed to open stream: Inappropriate ioctl for device in /in/uQj6L on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/uQj6L on line 3 Warning: rewind(): supplied argument is not a valid stream resource in /in/uQj6L on line 4 Warning: fgets(): supplied argument is not a valid stream resource in /in/uQj6L on line 5 bool(false)
Output for 4.3.5 - 4.4.9
Warning: fopen(php://temp): failed to open stream: Success in /in/uQj6L on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/uQj6L on line 3 Warning: rewind(): supplied argument is not a valid stream resource in /in/uQj6L on line 4 Warning: fgets(): supplied argument is not a valid stream resource in /in/uQj6L on line 5 bool(false)
Output for 4.3.3 - 4.3.4
Warning: fopen(php://temp): failed to open stream: Success in /in/uQj6L on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/uQj6L on line 3 Warning: rewind(): supplied argument is not a valid stream resource in /in/uQj6L on line 4 Warning: fgets(): supplied argument is not a valid stream resource in /in/uQj6L on line 5 NULL
Output for 4.3.2
Warning: fopen(php://temp): failed to open stream: Inappropriate ioctl for device in /in/uQj6L on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/uQj6L on line 3 Warning: rewind(): supplied argument is not a valid stream resource in /in/uQj6L on line 4 Warning: fgets(): supplied argument is not a valid stream resource in /in/uQj6L on line 5 NULL
Output for 4.3.0 - 4.3.1
Warning: fopen(php://temp) [http://www.php.net/function.fopen]: failed to create stream: Inappropriate ioctl for device in /in/uQj6L on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/uQj6L on line 3 Warning: rewind(): supplied argument is not a valid stream resource in /in/uQj6L on line 4 Warning: fgets(): supplied argument is not a valid stream resource in /in/uQj6L on line 5 NULL