3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<FOO mine_sht : carftj ### 漢字漢字貔貅 tv: tee # # HI tvw: 9 #haha #aa 9abaa: ahah #heuens FOO; preg_match_all('~^\s*((\w+)\s*:.[^\r\n#]*([^\r\n]*#*)?)?(#[^\r\n]*)*~um', $data, $matches); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => mine_sht : carftj ### 漢字漢字貔貅 [1] => tv: tee # # HI [2] => tvw: 9 #haha [3] => #aa [4] => 9abaa: ahah [5] => #heuens ) [1] => Array ( [0] => mine_sht : carftj ### 漢字漢字貔貅 [1] => tv: tee # # HI [2] => tvw: 9 #haha [3] => [4] => 9abaa: ahah [5] => ) [2] => Array ( [0] => mine_sht [1] => tv [2] => tvw [3] => [4] => 9abaa [5] => ) [3] => Array ( [0] => ### 漢字漢字貔貅 [1] => # # HI [2] => #haha [3] => [4] => [5] => ) [4] => Array ( [0] => [1] => [2] => [3] => #aa [4] => [5] => #heuens ) )

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:
29.9 ms | 408 KiB | 5 Q