3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = <<<DATA This is "some data" with some "quoted \"strings" DATA; $expr = '/\s+(?=[^\s]+|"((?:[^"\\\\]|\\\\.)*)")/'; var_dump(preg_split($expr, $var, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
Output for git.master, git.master_jit, rfc.property-hooks
array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(5) ""some" [3]=> string(5) "data"" [4]=> string(4) "with" [5]=> string(4) "some" [6]=> string(7) ""quoted" [7]=> string(10) "\"strings"" }

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:
48.12 ms | 401 KiB | 8 Q