docker pull php:5.5.27-fpm ...
docker pull php:5.6-fpm ...
docker pull php:7.0-fpm ...
docker pull php:7.1-fpm ...
docker pull php:7.2-fpm ...
...
function xrange(int $min, int $max): iterable {
for ($i = $min; $i < $max; $i++) {
yield $i;
}
}
$startMemory = memory_get_usage();
$array = xrange(1, 34000000);
foreach ($array as $item) {}
print_r($endMemory = memory_get_usage() - $startMemory); // 568
print_r(round($endMemory / 1024 / 1024) . ' MB'); // 0 MB
A preflight request is automatically issued by a browser and in normal cases, front-end developers don't need to craft such requests themselves. It appears when request is qualified as "to be preflighted" and omitted for simple requests.
preg_match_all('#<p[^>]*>(\X*?)</p>#', $html, $matches);
$salt = "2ert45g6klmnop56891234gb";
$password = hash('sha256', $password.$salt ); // algo, pass
echo dirname('main/users/admin'); // main/users
echo dirname('main/users/admin/'); // main/users
// php 5+
echo dirname(dirname('main/users/admin')); // main
echo dirname(dirname('main/users/admin/')); // main
// php 7+
echo dirname('main/users/admin', 2); // main
echo dirname('main/users/admin/', 2); // main