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,0,-1)); //ehco array_slice($img,0,-1); echo $img . ' + ' . $ext;
based on lJL3m
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/Blvgt on line 5 eprint_logo_new4 + jpg
Output for 5.3.19 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/Blvgt on line 5 eprint_logo_new4 + jpg