Quote:
Originally Posted by CyberSEO
Only 3 lines of code. We call it optimization, bro 
|
While I will admit - short, elegant, you are firing up the regex engine. I actually timed the execution for shits to see which works fastest (adding an echo of the output at the end for fairness in each):
0.0002028942108 (konrad v1)
0.0002288818359 (konrad v2)
0.0003898143768 (cyberseo)
0.0011749267578 (sarettah)
We are of course talking about 1/10000ths of a second difference here
