3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $subject = "/var/www/cms/video/2016/02/vernon-avenue-deli-robbery--1454619366.mp4/new-york-city_14.jpg"; $pattern = "/^\/var\/www\/cms\/.*$/"; $replacement = ''; echo preg_replace($pattern, $replacement, $subject);
based on 2SHV8
Output for 5.5.0 - 7.2.6