3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://fotoshara.ru/images/2014/04/22/1bUSQd.jpg"; if(preg_match('/fotoshara\.ru\/images\/\d+\/\d+\/\d+\/[\w\d]+\.\w+$/', $url)) echo "cool"; else echo "bad!";

preferences:
29.92 ms | 404 KiB | 5 Q