3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class_alias('Test', 'db'); class DB { public function __construct(){ echo 'hello'; } } $db = new DB;
based on hdCGq
Output for 5.6.30, 7.0.30 - 7.3.0alpha1
Warning: Class 'Test' not found in /in/TbkeW on line 2 hello
Output for hhvm-3.22.0
Warning: Class Test not found in /in/TbkeW on line -1 hello
Output for hhvm-3.18.5 - 3.21.3
Warning: Class Test not found in /in/TbkeW on line 2 hello