3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ex = new \Exception('hello'); throw new {get_class($ex)}('bye');
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected '{' in /in/Sel8g on line 4
Process exited with code 255.

preferences:
186.99 ms | 1387 KiB | 66 Q