3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "Template_menu_01"; $bar = end(explode("_", $foo)); //$bar = intval(end(explode("_", $foo))); var_dump($bar);
based on bDl3e
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/MbGbJ on line 4 string(2) "01"
Output for 5.3.18 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/MbGbJ on line 4 string(2) "01"