<?php
$image1 = 'gatka84.png';
echo
PHP_EOL . 'time()' . PHP_EOL
. time().'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. time().'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. time().'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. time().'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
/* wymagana wersja php 7.4+
. PHP_EOL . 'hrtime(true)' . PHP_EOL
. hrtime(true).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. hrtime(true).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. hrtime(true).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. hrtime(true).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
*/
. PHP_EOL . 'intval(microtime(true))' . PHP_EOL
. intval(microtime(true)*1000*1000).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. intval(microtime(true)*1000*1000).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. intval(microtime(true)*1000*1000).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. intval(microtime(true)*1000*1000).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. PHP_EOL . 'uniqid(mt_rand())' . PHP_EOL
. uniqid(mt_rand()).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. uniqid(mt_rand()).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. uniqid(mt_rand()).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. uniqid(mt_rand()).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
/* wymagana wersja php 7.4+
. PHP_EOL . 'uniqid(hrtime(true))' . PHP_EOL
. uniqid(hrtime(true)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. uniqid(hrtime(true)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. uniqid(hrtime(true)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. uniqid(hrtime(true)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
*/
. PHP_EOL . 'bin2hex(random_bytes(10))' . PHP_EOL
. bin2hex(random_bytes(10)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. bin2hex(random_bytes(10)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. bin2hex(random_bytes(10)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. bin2hex(random_bytes(10)).'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. PHP_EOL . 'rtrim(chunk_split(bin2hex(random_bytes(8)), 4, \'-\'), \'-\')' . PHP_EOL
. rtrim(chunk_split(bin2hex(random_bytes(8)), 4, '-'), '-').'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. rtrim(chunk_split(bin2hex(random_bytes(8)), 4, '-'), '-').'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. rtrim(chunk_split(bin2hex(random_bytes(8)), 4, '-'), '-').'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. rtrim(chunk_split(bin2hex(random_bytes(8)), 4, '-'), '-').'.'.pathinfo($image1, PATHINFO_EXTENSION) . PHP_EOL
. PHP_EOL;