PHP parser fully rewrited