Update test2.php

Removed some unwanted stuff
Update test2.php

- More simpler and optimised code
- Better pattern matching
Update test2.php

Disable PHP Error Reporting on-the-fly
Merge pull request #1 from prakharprasad/patch-1

Random optimisations