3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $option_value = array(); $option_value['image'] = 'data/eprint_logo_new4.jpg'; $img = end(explode("/",$option_value['image'])); $img = explode(".",$img); $ext = end($img); $img = implode(".",array_slice($img,1,-1)); echo $img . ' + ' + $ext;
based on JvLnS
Output for 7.1.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/9vhqC on line 5 Warning: A non-numeric value encountered in /in/9vhqC on line 9 Warning: A non-numeric value encountered in /in/9vhqC on line 9 0
Output for 7.0.0 - 7.0.20
Notice: Only variables should be passed by reference in /in/9vhqC on line 5 0
Output for 5.3.19 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/9vhqC on line 5 0