3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "// File : /okcontent/js/Oryx/Cookies.js"; $str2 = "// File : /okcontent/js/twitter.js"; $str3 = "// File : /okcontent/js/Oryx/pups/Cookies.js"; $m = array(); $m2 = array(); $m3 = array(); $regex = preg_match("#File : /okcontent/js/(?:.*\/)?(.*?)\.js#si", $str, $m); $regex = preg_match("#File : /okcontent/js/(?:.*\/)?(.*?)\.js#si", $str2, $m2); $regex = preg_match("#File : /okcontent/js/(?:.*\/)?(.*?)\.js#si", $str3, $m3); var_dump($m); var_dump($m2); var_dump($m3);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(36) "File : /okcontent/js/Oryx/Cookies.js" [1]=> string(7) "Cookies" } array(2) { [0]=> string(31) "File : /okcontent/js/twitter.js" [1]=> string(7) "twitter" } array(2) { [0]=> string(41) "File : /okcontent/js/Oryx/pups/Cookies.js" [1]=> string(7) "Cookies" }

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