3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new Exception(array()))->getMessage());
based on PK5Y1
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in /in/dsAik:3 Stack trace: #0 /in/dsAik(3): Exception->__construct(Array) #1 {main} thrown in /in/dsAik on line 3
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /in/dsAik on line 3
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/dsAik on line 3
Process exited with code 255.