3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo extends Exception { private $message = "Foobar"; protected $code = 9000; } $foo = new Foo(null, null, new Exception('Bar baz')); var_dump($foo);
Output for 5.3.0 - 5.4.15
Fatal error: Access level to Foo::$message must be protected (as in class Exception) or weaker in /in/JcKii on line 7
Process exited with code 255.