Not sure if PhpParser solves it, never tested it.