3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $image = 'product_images/2000/image.jpg'; $image_path = explode('/', $image); echo end($image_path);
based on kELKD
Output for 4.3.0 - 7.1.0
image.jpg