# Version_Constraint::parse()

Parse an expression into comparators.

```php
parse( string $expr ): ?array
```

## Parameters

- `$expr` (string) Constraint.

## Return

`list<array{0: string, 1: string}>|null` List of `[operator, version]`, or null when the expression is invalid. An empty list means "any".

## Changelog

| Version | Description |
| --- | --- |
| 1.6.0 | Introduced |
