Re: [PHP-DEV] Re: str_repeat performance

2022-09-10 Thread Hans Henrik Bergan
maybe you'll find $t=microtime(true) - $startTime; var_dump($t,number_format($t,10)); interesting, https://3v4l.org/Ejia3 On Sat, 10 Sept 2022 at 17:11, Eugene Sidelnyk wrote: > Oh, yes. Sorry for that. > > Thanks for pointing out. > > On Sat, Sep 10, 2022 at 3:23 PM Christoph M. Becker > wrot

[PHP-DEV] Re: str_repeat performance

2022-09-10 Thread Eugene Sidelnyk
Oh, yes. Sorry for that. Thanks for pointing out. On Sat, Sep 10, 2022 at 3:23 PM Christoph M. Becker wrote: > On 10.09.2022 at 14:19, Eugene Sidelnyk wrote: > > > I have noted some strange points about `str_repeat` performance. It looks > > like the lesser `$times` argument is, the bigger is e

[PHP-DEV] Re: str_repeat performance

2022-09-10 Thread Christoph M. Becker
On 10.09.2022 at 14:19, Eugene Sidelnyk wrote: > I have noted some strange points about `str_repeat` performance. It looks > like the lesser `$times` argument is, the bigger is execution time (only if > we consider big numbers). > > For example, `str_repeat('%d ', 12500);` is a lot slower than > `