- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$str = '<script>
var images = new Array(), images_thumbs = new Array();
images_thumbs[0] = "//domain.com/thumbs/c7d/c7dfc634711bc658243aa7575b048b5d4f72fb6d.jpg";
images[0] = "//domain.com/xxl/c7d/c7dfc634711bc658243aa7575b048b5d4f72fb6d.jpg";
images_thumbs[1] = "//img4.leboncoin.fr/thumbs/222/222d9946df4466e3ecdc3c17ea96bffe0b6bb739.jpg";
images[1] = "//img4.leboncoin.fr/xxl/222/222d9946df4466e3ecdc3c17ea96bffe0b6bb739.jpg";
images_thumbs[2] = "//img1.leboncoin.fr/thumbs/361/361ea09124fde43162f6e638137aa1032f563654.jpg";
images[2] = "//img1.leboncoin.fr/xxl/361/361ea09124fde43162f6e638137aa1032f563654.jpg";
</script>';
preg_match_all('/\/\/(.*.jpg)/', $str, $results);
var_dump($results);