3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt="Fatti&Storie 5 - Lorem ipsum dolor [12] sit amet [nid:5]"; $re1=".*?"; $re2="(\\[)"; $re3="((?:[a-z][a-z0-9_]*))"; $re4="(:)"; $re5='(\\d+)'; if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches)) { $c1=$matches[1][0]; $var1=$matches[2][0]; $c2=$matches[3][0]; $int1=$matches[4][0]; print "($c1) ($var1) ($c2) ($int1)\n"; }
Output for git.master, git.master_jit
Warning: Undefined array key 4 in /in/kASL7 on line 12 Warning: Trying to access array offset on value of type null in /in/kASL7 on line 12 ([) (nid) (:) ()
Output for rfc.property-hooks
Warning: Undefined array key 4 in /in/kASL7 on line 12 Warning: Trying to access array offset on null in /in/kASL7 on line 12 ([) (nid) (:) ()

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