3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<FOO #shit ## #shit2 #sshit3 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] => #shit [1] => ## #shit2 [2] => #sshit3 [3] => mine_sht : carftj ### 漢字漢字貔貅 [4] => tv: tee # # HI [5] => tvw: 9 #haha [6] => #aa [7] => 9abaa: ahah [8] => #heuens ) [1] => Array ( [0] => [1] => [2] => [3] => mine_sht [4] => tv [5] => tvw [6] => [7] => 9abaa [8] => ) [2] => Array ( [0] => [1] => [2] => [3] => ### 漢字漢字貔貅 [4] => # # HI [5] => #haha [6] => [7] => [8] => ) [3] => Array ( [0] => #shit [1] => ## #shit2 [2] => #sshit3 [3] => [4] => [5] => [6] => #aa [7] => [8] => #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:
27.57 ms | 408 KiB | 5 Q