3v4l.org

run code in 500+ PHP versions simultaneously
<?php $invalid_utf8 = "\xE9"; $result = preg_match('/^(.*)(\s+(DESC|ASC|))*$/Ui', invalid_utf8, $matches); var_dump($result); var_dump($matches);
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught Error: Undefined constant "invalid_utf8" in /in/51qSZ:5 Stack trace: #0 {main} thrown in /in/51qSZ on line 5
Process exited with code 255.

preferences:
47.76 ms | 708 KiB | 4 Q