3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "---\n title = A nice title goes here\n tags = tag1 tag2 tag3\n ---\n This is the content of this entry...\n Line2\n Line3\n"; $p1 = preg_split("/[\n]*[-]{3}[\n]/", $s, 3, PREG_SPLIT_NO_EMPTY); $p2 = preg_split("/[\n]*[-]{3}[\n]/", $s, 2, PREG_SPLIT_NO_EMPTY); print_r($p1); print_r($p2);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => title = A nice title goes here tags = tag1 tag2 tag3 [1] => This is the content of this entry... Line2 Line3 ) Array ( [0] => title = A nice title goes here tags = tag1 tag2 tag3 [1] => This is the content of this entry... Line2 Line3 )

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:
37.24 ms | 402 KiB | 8 Q