3v4l.org

run code in 300+ PHP versions simultaneously
<?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')
Output for 7.0.0 - 7.0.17, 7.1.0 - 7.1.3
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/quCP1 on line 3
Process exited with code 255.

preferences:
167.3 ms | 1395 KiB | 29 Q