3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Sett\Specification\Http; interface StatusInterface { public function __construct ( int $code = 200, string $message = '' ) : self; public function getCode () : int; public function getMessage () : string; public function __toString () : string; }
Output for 7.0.0 - 7.2.0
Output for 5.3.19 - 5.6.21
Fatal error: Default value for parameters with a class type hint can only be NULL in /in/5CaI6 on line 5
Process exited with code 255.