3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "username............: username home directory......: 00/username mail storage server.: mail-server.example.net status..............: active quota size..........: 1000.000 megabytes quota count.........: no quota forward to..........: username@example.com full name...........: testing:testing offers..............:"; preg_match_all('/\s*(?<key>[^a-z ]+)\.*:\s*(?<value>.+)\s*/i', $string, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(8) { [0]=> string(23) "............: username " [1]=> string(20) "......: 00/username " [2]=> string(27) ".: mail-server.example.net " [3]=> string(23) "..............: active " [4]=> string(31) "..........: 1000.000 megabytes " [5]=> string(20) ".........: no quota " [6]=> string(33) "..........: username@example.com " [7]=> string(29) "...........: testing:testing " } ["key"]=> array(8) { [0]=> string(12) "............" [1]=> string(6) "......" [2]=> string(1) "." [3]=> string(14) ".............." [4]=> string(10) ".........." [5]=> string(9) "........." [6]=> string(10) ".........." [7]=> string(11) "..........." } [1]=> array(8) { [0]=> string(12) "............" [1]=> string(6) "......" [2]=> string(1) "." [3]=> string(14) ".............." [4]=> string(10) ".........." [5]=> string(9) "........." [6]=> string(10) ".........." [7]=> string(11) "..........." } ["value"]=> array(8) { [0]=> string(8) "username" [1]=> string(11) "00/username" [2]=> string(23) "mail-server.example.net" [3]=> string(6) "active" [4]=> string(18) "1000.000 megabytes" [5]=> string(8) "no quota" [6]=> string(20) "username@example.com" [7]=> string(15) "testing:testing" } [2]=> array(8) { [0]=> string(8) "username" [1]=> string(11) "00/username" [2]=> string(23) "mail-server.example.net" [3]=> string(6) "active" [4]=> string(18) "1000.000 megabytes" [5]=> string(8) "no quota" [6]=> string(20) "username@example.com" [7]=> string(15) "testing:testing" } }

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:
58.56 ms | 405 KiB | 8 Q