3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Text = "There is an unique news in itlogic.com. I was read it when Mrs.leafa is cooking."; $array = preg_split("/\.(?=\s|$)/m", $Text); var_dump($array); if($array[count($array)-1] == ""){ unset($array[count($array)-1]); } var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(38) "There is an unique news in itlogic.com" [1]=> string(40) " I was read it when Mrs.leafa is cooking" [2]=> string(0) "" } array(2) { [0]=> string(38) "There is an unique news in itlogic.com" [1]=> string(40) " I was read it when Mrs.leafa is cooking" }

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:
32.85 ms | 406 KiB | 5 Q