3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('~(user_upload/)([0-9]{1,2})/([0-9]{1,2})/(*.)\.(jpg|png)$~', '$1', 'http://service.aggreg8.com.au/user_upload/2/10/5694db093de61.jpg');
based on quCP1
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: preg_replace(): Compilation failed: (*VERB) not recognized or malformed at offset 42 in /in/GBkOC on line 3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.8
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 41 in /in/GBkOC on line 3
Output for hhvm-3.12.14 - 3.17.3
Warning: Compilation failed: nothing to repeat at offset 41 in /in/GBkOC on line 3