3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do() { try { throw Exception ('a'); } finally { throw Exception ('b'); } } try { do(); } Catch (Exception $e) { var_dump($e->getMessage(), $e->getPrevious()->getMessage()); }
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected 'do' (T_DO), expecting '(' in /in/2uatj on line 2
Process exited with code 255.

preferences:
165.39 ms | 1395 KiB | 22 Q