Thanks for this question. At first thought I wanted to ask why the hell is this important?!
But then I tested out the performance differences between == and ===. And (at least with my testing
environment (average time spend for 100.000 comparisons x 1000 tries to have an average result in php8.2) I
was able to find out that == needs only 75% execution time of ===. And I learned about a function
I didn't know before. microtime(true);
This comment is hidden because it contains spoiler information about the solution
Thanks for this question. At first thought I wanted to ask why the hell is this important?!
But then I tested out the performance differences between == and ===. And (at least with my testing
environment (average time spend for 100.000 comparisons x 1000 tries to have an average result in php8.2) I
was able to find out that == needs only 75% execution time of ===. And I learned about a function
I didn't know before. microtime(true);
So thanks again for your great input!
not best practice in my opinion but super clever!!!
love it!
awesome! love it!
love that one!
super smart but way too hard to read
This comment is hidden because it contains spoiler information about the solution
parameters and average calculation is really nice solved!
Readable code should be best practice. This looks fun but not easy to read.