Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> ParseResult
Expand description

Parse PHP source using the latest supported PHP version (currently 8.5).

Returns a fully-owned ParseResult with no lifetime parameters. The internal arena is created, used, and converted within this call.

Use parse_arena when you need the raw arena-allocated AST for maximum throughput (no allocation copying).