3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<FOO mine : carft j ### Hi漢字漢字爨底下貔貅 tv: "tee" # HI tvw: 9 #haha 9abaa: ahah #me FOO; preg_match_all('~^\s*([^\s:]+)\s*:([^\r\n#]*)\s*([\w\t ]*[^\r\n]*)~umx', $data, $matches); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => mine : carft j ### Hi漢字漢字爨底下貔貅 [1] => tv: "tee" # HI [2] => tvw: 9 #haha [3] => 9abaa: ahah #me ) [1] => Array ( [0] => mine [1] => tv [2] => tvw [3] => 9abaa ) [2] => Array ( [0] => carft j [1] => "tee" [2] => 9 [3] => ahah ) [3] => Array ( [0] => ### Hi漢字漢字爨底下貔貅 [1] => # HI [2] => #haha [3] => #me ) )

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:
26.58 ms | 407 KiB | 5 Q