3v4l.org

run code in 500+ PHP versions simultaneously
<?php try{ "string" . 1 + throw throw throw throw throw throw new Exception("exception"); } catch (Exception $e) { var_dump($e->getMessage()); }
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.33, 8.4.1 - 8.4.26, 8.5.0 - 8.5.9
string(9) "exception"

preferences:
30.36 ms | 1135 KiB | 8 Q