3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '"res":"https://my.site.com/image/I/fj23l6j2lgk_AM1200_.jpg"'; echo preg_match('~(?<=^"res":")https://my\.site\.com/image/I/[a-zA-z\d]{11}_\w*_\.jpg(?="$)~', $string, $out) ? $out[0] : 'no match';

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.69 ms | 2105 KiB | 11 Q