3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class_name = "class@anonymous".chr(0).'/foo'; class_alias($class_name, 'MyAlias'); $d = get_declared_classes(); end($d); var_dump(current($d));
based on NPemY
Output for 7.2.0 - 7.3.1
Warning: Class 'class@anonymous' not found in /in/FaWfM on line 4 string(15) "SodiumException"
Output for 7.0.0 - 7.1.25
Warning: Class 'class@anonymous' not found in /in/FaWfM on line 4 string(8) "IntlChar"
Output for 5.6.0 - 5.6.38
Warning: Class 'class@anonymous' not found in /in/FaWfM on line 4 string(10) "UConverter"
Output for 5.4.9 - 5.5.38
Warning: Class 'class@anonymous' not found in /in/FaWfM on line 4 string(9) "XMLWriter"
Output for 5.3.19 - 5.3.29
Warning: Class 'class@anonymous' not found in /in/FaWfM on line 4 string(10) "ZipArchive"