# Version_Constraint::satisfies()

Whether a version satisfies a constraint.

```php
satisfies( string $version, string $expr ): bool
```

## Parameters

- `$version` (string) Version to test (for example `1.6.0` or `1.6.0-beta.1`).
- `$expr` (string) Constraint.

## Return

`bool` False for an invalid constraint or an unusable version.

## Changelog

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