3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '05/21/2018 ghijkl 06/12/2018 mnopqrst'; $result = preg_split('@(\b\d{1,2}/\d{1,2}/\d{4}\b)@', $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> string(10) "05/21/2018" [1]=> string(8) " ghijkl " [2]=> string(10) "06/12/2018" [3]=> string(9) " mnopqrst" }

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