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 = fopen(tempnam(), 'r'); fwrite($tmp, 'hello'); // Store the file pointer so that it isn't freed // right away. $files[] = $tmp; }

preferences:
34.83 ms | 402 KiB | 5 Q