3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello how are you<br>Foo bar hello'; $array = preg_split( '/(?:\s*(?<=\s))|(<br>)/', $str, -1, PREG_SPLIT_DELIM_CAPTURE); var_dump( $array);
Output for git.master, git.master_jit, rfc.property-hooks
array(13) { [0]=> string(5) "Hello" [1]=> string(0) "" [2]=> string(3) "how" [3]=> string(0) "" [4]=> string(3) "are" [5]=> string(0) "" [6]=> string(3) "you" [7]=> string(4) "<br>" [8]=> string(3) "Foo" [9]=> string(0) "" [10]=> string(3) "bar" [11]=> string(0) "" [12]=> string(5) "hello" }

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