3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); $files = array(); while ( TRUE ) { $data = base64_encode(fread($handle, 200)); $tmp = tmpfile(); var_dump($tmp); exit; fwrite($tmp, $data); // Store the file pointer so that it isn't freed // right away. $files[] = $tmp; }

preferences:
57.96 ms | 402 KiB | 5 Q