3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.6dollarshirts.com/home.php'; $fp = file_get_contents($url); ///<a href="product.php?productid=12177"><img src="http://6dollar.threadpitinc.netdna-cdn.com/images/T/Merica_T_SHIRT_tn.jpg" preg_match_all('/productid=(.*?)"><img src="(.*?)\.jpg/', $fp, $matches); print_r($matches); ?>

preferences:
39.87 ms | 402 KiB | 5 Q