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();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00618.30
8.3.50.0120.00616.58
8.3.40.0030.01020.14
8.3.30.0080.00520.86
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0060.01318.41
8.2.170.0140.00718.80
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00419.49
8.2.110.0060.00321.12
8.2.100.0080.00317.84
8.2.90.0080.00017.97
8.2.80.0100.00019.95
8.2.70.0040.00417.75
8.2.60.0140.00517.25
8.2.50.0160.00317.48
8.2.40.0140.00317.25
8.2.30.0040.01217.50
8.2.20.0130.00317.50
8.2.10.0130.00517.75
8.2.00.0130.00317.63
8.1.280.0040.01125.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00322.58
8.1.230.0090.00320.90
8.1.220.0040.00417.74
8.1.210.0030.00618.99
8.1.200.0000.00917.23
8.1.190.0050.01116.88
8.1.180.0120.00617.11
8.1.170.0160.00017.11
8.1.160.0160.00017.00
8.1.150.0100.00717.00
8.1.140.0130.00417.00
8.1.130.0100.00717.13
8.1.120.0100.01017.13
8.1.110.0130.00416.88
8.1.100.0140.00317.38
8.1.90.0060.00917.25
8.1.80.0160.00317.38
8.1.70.0140.00317.10
8.1.60.0190.00017.38
8.1.50.0140.00517.38
8.1.40.0090.00917.38
8.1.30.0150.00317.35
8.1.20.0120.00617.25
8.1.10.0120.00617.13
8.1.00.0140.00317.38
8.0.300.0040.00419.83
8.0.290.0040.00416.74
8.0.280.0170.00016.75
8.0.270.0140.00316.72
8.0.260.0160.00016.61
8.0.250.0140.00316.75
8.0.240.0120.00416.88
8.0.230.0130.00316.52
8.0.220.0170.00016.52
8.0.210.0080.00816.59
8.0.200.0080.00816.63
8.0.190.0130.00316.73
8.0.180.0110.00616.75
8.0.170.0090.00916.63
8.0.160.0120.00416.63
8.0.150.0070.01016.73
8.0.140.0110.00516.52
8.0.130.0170.00416.75
8.0.120.0160.00016.75
8.0.110.0130.00316.75
8.0.100.0170.00416.52
8.0.90.0140.00316.63
8.0.80.0080.00816.52
8.0.70.0130.00416.75
8.0.60.0090.00916.63
8.0.50.0110.00616.75
8.0.30.0130.00316.71
8.0.20.0040.01216.63
8.0.10.0130.00316.63

preferences:
43.68 ms | 400 KiB | 5 Q