3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '/2013/06/14/chocolate-peanut-butter-cups/'; $regex = '/\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/[a-z0-9-]/'; preg_match($regex, $str, $matches); print_r($matches);

preferences:
41.34 ms | 402 KiB | 5 Q