3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AException extends \Exception {} class T extends \RuntimeException{ public function __construct($message, AException $e) { parent::__construct($message, $e->getCode(), $e); } } throw new T("CRAP", new AException;
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/Rtob2 on line 11
Process exited with code 255.

preferences:
160.62 ms | 1399 KiB | 36 Q