3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 'supportedDatabases' => array ( 'mysql' ), 'apps_paths' => array ( array ('path' => '@SNAP_APP_DATA_PATH@/owncloud/apps', 'url' => '/apps', 'writable' => 1 ) ) ); public function getAllValues() { $ret = array(); foreach ($arr as $key => $value) { $ret[$key] = replaceEnvironmentVariables($value); } return $ret; } static private function replaceEnvironmentVariables(&$value, $key = null) { if (is_array($value)) { array_walk_recursive($value, 'replaceEnvironmentVariables'); } elseif (is_string($value)) { $value = preg_replace_callback('/@(\w+)@/', function ($matches) { return getenv($matches[1]); }, $value); } } print_r(getAllValues());

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)
7.0.20.0300.07320.18
7.0.10.0030.06320.24
7.0.00.0030.06020.19
5.6.170.0270.07320.47
5.6.160.0070.07320.39
5.6.150.0170.07318.18
5.6.140.0030.06018.28
5.6.130.0070.05318.28
5.6.120.0100.03320.97
5.6.110.0000.05320.98
5.6.100.0100.05021.08
5.6.90.0100.08021.10
5.6.80.0030.05020.50
5.5.310.0170.04320.35
5.5.300.0030.04017.98
5.5.290.0030.04318.05
5.5.280.0030.07720.66
5.5.270.0130.07320.86
5.5.260.0070.08720.76
5.5.250.0070.04320.79
5.5.240.0270.07320.11

preferences:
135.99 ms | 1398 KiB | 7 Q