3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '[:it]Stringa in italiano[:en]String in english'; preg_match_all('~\[:([^]]+)](.+?)(?=$|\[:[^]]+])~', $string, $m); var_export($m);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => '[:it]Stringa in italiano', 1 => '[:en]String in english', ), 1 => array ( 0 => 'it', 1 => 'en', ), 2 => array ( 0 => 'Stringa in italiano', 1 => 'String in english', ), )

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:
96.63 ms | 1288 KiB | 4 Q