3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test () { try { $a = 1; echo 'try'; return $a; } catch (\Exception $e) { $a = 2; return $a; } finally { $a = 3; return $a; } } var_dump(test());
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
tryint(3)

preferences:
42.81 ms | 406 KiB | 5 Q