3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs= ["Rosemary Hess (2018) (Germany) (all media)", "Jackie H Spriggs (catering)"]; foreach ($strs as $s){ print_r( preg_split('~\s*(?=\([^()]*\))~', $s, 2) ); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Rosemary Hess [1] => (2018) (Germany) (all media) ) Array ( [0] => Jackie H Spriggs [1] => (catering) )

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:
125.31 ms | 405 KiB | 5 Q