3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: preg_match(): No ending delimiter '^' found in /in/04t6L on line 8 NOK

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.31 ms | 401 KiB | 8 Q