3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php eval(' class MyException { public function __construct(HH\string $something = ""){ } } ');
Output for 7.0.0 - 7.1.0
Fatal error: Cannot use 'HH\string' as class name as it is reserved in /in/fnCXO(9) : eval()'d code on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Output for 5.3.0 - 5.6.28
Fatal error: Default value for parameters with a class type hint can only be NULL in /in/fnCXO(9) : eval()'d code on line 3
Process exited with code 255.