3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "sdf0djusdsh283uihiudfesw2r389xdsfhdsfsifh23ui22832382382332husdhf"; $result = preg_split("/([a-z]+|[0-9]+)/usD", $string, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); var_dump($result);
Output for git.master_jit, git.master, rfc.property-hooks
array(13) { [0]=> string(3) "sdf" [1]=> string(1) "0" [2]=> string(7) "djusdsh" [3]=> string(3) "283" [4]=> string(10) "uihiudfesw" [5]=> string(1) "2" [6]=> string(1) "r" [7]=> string(3) "389" [8]=> string(12) "xdsfhdsfsifh" [9]=> string(2) "23" [10]=> string(2) "ui" [11]=> string(14) "22832382382332" [12]=> string(6) "husdhf" }

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:
45.07 ms | 2065 KiB | 4 Q