3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = "class@anonymous".chr(0).'/foo'; class_alias($class_name, 'MyAlias'); $d = get_declared_classes(); end($d); var_dump(current($d));
Output for 7.0.6 - 7.2.0
Notice: Undefined variable: class_name in /in/NPemY on line 4 Warning: Class '' not found in /in/NPemY 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
Notice: Undefined variable: class_name in /in/NPemY on line 4 Warning: Class '' not found in /in/NPemY 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
Notice: Undefined variable: class_name in /in/NPemY on line 4 Warning: Class '' not found in /in/NPemY on line 4 string(10) "UConverter"
Output for 5.3.19 - 5.3.29
Notice: Undefined variable: class_name in /in/NPemY on line 4 Warning: Class '' not found in /in/NPemY on line 4 string(10) "ZipArchive"