3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="";   $text="iasduad iiabefibasdib [nid:112] oabsdo baosd [10] [n10]";   $re1='.*?'; # Non-greedy match on filler   $re2='(\\[)'; # Any Single Character 1   $re3='(n)'; # Any Single Character 2   $re4='(i)'; # Any Single Character 3   $re5='(d)'; # Any Single Character 4   $re6='(:)'; # Any Single Character 5   if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $text, $matches))   {       $c1=$matches[1][0];       $c2=$matches[2][0];       $c3=$matches[3][0];       $c4=$matches[4][0];       $c5=$matches[5][0];       print "($c1) ($c2) ($c3) ($c4) ($c5) \n";   }
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '$text' (T_VARIABLE) in /in/1rCY9 on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_VARIABLE in /in/1rCY9 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_VARIABLE in /in/1rCY9 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/1rCY9 on line 4
Process exited with code 255.

preferences:
209.15 ms | 1386 KiB | 123 Q