3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NotThis extends \Exception { public function __construct($mess) { parent::__construct($mess); } } function goBla () { try { throw new \Exception("x"); } catch (\Exception $e) { echo "bla"; } finally { throw new \NotThis("x"); } } function goBla();
Output for 5.6.0 - 5.6.26, 7.0.0 - 7.0.11
Parse error: syntax error, unexpected ';', expecting '{' in /in/aNj02 on line 31
Process exited with code 255.

preferences:
178.57 ms | 1395 KiB | 46 Q