3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); $files = array(); while ( TRUE ) { $data = base64_encode(fread($handle, 200)); $tmp = fopen(tempnam()); fwrite($tmp, 'hello'); // Store the file pointer so that it isn't freed // right away. $files[] = $tmp; }

Abusive script

This script was stopped while abusing our resources