3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = '/video/bb14ff1ecc65c3272a0ee199f8005b72.ogv'; $regex = '^\/(download|thumbs|screens|video|strip)\/.*'; $arrMatch = array(); if (preg_match($regex, $url, $arrMatch)) { var_dump($arrMatch); }else{ echo 'NOK'; }
Output for 4.3.11 - 7.1.0
Warning: preg_match(): No ending delimiter '^' found in /in/04t6L on line 8 NOK
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter '^' found in /in/04t6L on line 8 NOK