3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'comment=Accept established chain=forward connection-state=established'; preg_match_all('/([a-z-]+)=(.*?)(?=\s*[a-z-]+=|$)/', $str, $matches); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => comment=Accept established [1] => chain=forward [2] => connection-state=established ) [1] => Array ( [0] => comment [1] => chain [2] => connection-state ) [2] => Array ( [0] => Accept established [1] => forward [2] => established ) )

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:
32.61 ms | 406 KiB | 5 Q