3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'E:\xampp\htdocs\tpd\99travellers\supplier'; echo preg_replace('/\\supplier/','',$url); echo preg_replace('/\\/', 'REMOVED BACKSLASH', 'sometest\othertest');
Output for 4.3.11 - 7.1.0
E:\xampp\htdocs\tpd\99travellers\supplier Warning: preg_replace(): No ending delimiter '/' found in /in/OcpIk on line 5
Output for 4.3.0 - 4.3.10
E:\xampp\htdocs\tpd\99travellers\supplier Warning: No ending delimiter '/' found in /in/OcpIk on line 5