3v4l.org

run code in 300+ PHP versions simultaneously
<?php $projectRoot = sys_get_temp_dir() . "/test"; mkdir($projectRoot, 0777, true); touch("$projectRoot/file1.php"); mkdir("$projectRoot/folder", 0777, true); touch("$projectRoot/folder/evenmoar.php"); touch("$projectRoot/folder/moarcode.php"); chdir($projectRoot); $dirIterator = new RecursiveDirectoryIterator(".", FilesystemIterator::SKIP_DOTS); $iterator = new RecursiveIteratorIterator($dirIterator); foreach($iterator as $file) { echo $file; }
Output for git.master, git.master_jit
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for rfc.property-hooks
./file1.php./folder/evenmoar.php./folder/moarcode.php

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:
56.78 ms | 401 KiB | 8 Q