3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value_pattern = "\"(?:[^\"]|\")*\""; $variable_pattern = '\w+ *\= *' . $value_pattern; $block_pattern = "\[(?:[/]|\w)+(?: +' . $variable_pattern . ')*\]"; $input = 'Some text broken by an [img src="resx/img.jpg" alt="" full] and more text below.'; echo $block_pattern; $tokens = preg_split('/'.$block_pattern.'/', $input, -1, PREG_SPLIT_DELIM_CAPTURE);
Output for git.master, git.master_jit, rfc.property-hooks
\[(?:[/]|\w)+(?: +' . \w+ *\= *"(?:[^"]|")*" . ')*\] Warning: preg_split(): Unknown modifier ']' in /in/lJ0TN on line 9

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