3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fqcn = 'a\a\a\a\a\a\agg'; $alias = array_reverse(explode('\\', $fqcn))[0]; var_export([$alias]);
based on mhl8A
Output for 5.6.38 - 7.3.0rc3
array ( 0 => 'agg', )