3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[gallery columns="1" ids="137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161"]'; $pattern = '/\[(?.*)\]/i'; $replacement = '${1}1,$3'; echo preg_replace($pattern, $replacement, $string);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): Compilation failed: unrecognized character after (? or (?- at offset 4 in /in/4h3Qr on line 5

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.97 ms | 401 KiB | 8 Q