3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { } class_alias('Foo', 'FooAlias'); function hint_for_alias(FooAlias $foo) { } $foo = new Foo; $hint_for_alias($foo);
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: hint_for_alias in /in/oF0EB on line 15 Fatal error: Uncaught Error: Function name must be a string in /in/oF0EB:15 Stack trace: #0 {main} thrown in /in/oF0EB on line 15
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Notice: Undefined variable: hint_for_alias in /in/oF0EB on line 15 Fatal error: Uncaught Error: Function name must be a string in /in/oF0EB:15 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.5.0 - 5.6.30, hhvm-3.10.1
Notice: Undefined variable: hint_for_alias in /in/oF0EB on line 15 Fatal error: Function name must be a string in /in/oF0EB on line 15
Process exited with code 255.