3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {} class Bar extends Foo {} class FooCreator { public function create(FooAlias $foo) { } } class_alias('Foo', 'FooAlias'); $foo = new Bar; $creator = new FooCreator(); $creator->create($foo); hint_for_alias($foo);
based on vnA9M
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function hint_for_alias() in /in/poTKh:22 Stack trace: #0 {main} thrown in /in/poTKh on line 22
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function hint_for_alias() in /in/poTKh on line 22
Process exited with code 255.