3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = '/video/bb14ff1ecc65c3272a0ee199f8005b72.ogv'; $regex = '/^\/(download|thumbs|screens|video|strip)\/[a-zA-Z0-9\._\/]+/'; $arrMatch = array(); if (preg_match($regex, $url, $arrMatch)) { var_dump($arrMatch); }else{ echo 'NOK'; }
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(43) "/video/bb14ff1ecc65c3272a0ee199f8005b72.ogv" [1]=> string(5) "video" }

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:
43.01 ms | 401 KiB | 8 Q