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; } var_dump(StatusInterface);
based on 5CaI6
Output for 7.2.0
Warning: Use of undefined constant StatusInterface - assumed 'StatusInterface' (this will throw an Error in a future version of PHP) in /in/aKWa3 on line 16 string(15) "StatusInterface"
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant StatusInterface - assumed 'StatusInterface' in /in/aKWa3 on line 16 string(15) "StatusInterface"
Output for 5.3.19 - 5.6.28
Fatal error: Default value for parameters with a class type hint can only be NULL in /in/aKWa3 on line 5
Process exited with code 255.