3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class_name = "class@anonymous"."\\0".'/in/foo'; class_alias($class_name, 'MyAlias'); $d = get_declared_classes(); end($d); var_dump(current($d));
based on FaWfM
Output for 7.0.6 - 7.2.0
Warning: Class 'class@anonymous\0/in/foo' not found in /in/dbJ4t on line 4 string(8) "IntlChar"
Output for 5.4.9 - 5.4.45, 5.5.29 - 5.5.34, 5.6.13 - 5.6.20, 7.0.0 - 7.0.5
Warning: Class 'class@anonymous\0/in/foo' not found in /in/dbJ4t on line 4 string(9) "XMLWriter"
Output for 5.5.24 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21 - 5.6.28
Warning: Class 'class@anonymous\0/in/foo' not found in /in/dbJ4t on line 4 string(10) "UConverter"
Output for 5.3.19 - 5.3.29
Warning: Class 'class@anonymous\0/in/foo' not found in /in/dbJ4t on line 4 string(10) "ZipArchive"