3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "ert @param trtgg hovno @test etse et e ets @michal @hola michale"; preg_match_all("/((@[\w]+)(\s+([^@]+))?)/", $text, $matches); var_dump($matches);;
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(4) { [0]=> string(19) "@param trtgg hovno " [1]=> string(20) "@test etse et e ets " [2]=> string(9) "@michal " [3]=> string(13) "@hola michale" } [1]=> array(4) { [0]=> string(19) "@param trtgg hovno " [1]=> string(20) "@test etse et e ets " [2]=> string(9) "@michal " [3]=> string(13) "@hola michale" } [2]=> array(4) { [0]=> string(6) "@param" [1]=> string(5) "@test" [2]=> string(7) "@michal" [3]=> string(5) "@hola" } [3]=> array(4) { [0]=> string(13) " trtgg hovno " [1]=> string(15) " etse et e ets " [2]=> string(2) " " [3]=> string(8) " michale" } [4]=> array(4) { [0]=> string(12) "trtgg hovno " [1]=> string(14) "etse et e ets " [2]=> string(1) " " [3]=> string(7) "michale" } }

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:
49.06 ms | 403 KiB | 8 Q