3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = ['auto', 'int', 'float', 'string', 'html', 'list', 'pattern']; // echo '('.implode('|', $types).')'; $str = 'fdssdf,565848,sdf,dsf,sdf,новаева,f,sdf'; preg_match_all('/(\w+\,)|\w+/iu', $str, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(8) { [0]=> string(7) "fdssdf," [1]=> string(7) "565848," [2]=> string(4) "sdf," [3]=> string(4) "dsf," [4]=> string(4) "sdf," [5]=> string(15) "новаева," [6]=> string(2) "f," [7]=> string(3) "sdf" } [1]=> array(8) { [0]=> string(7) "fdssdf," [1]=> string(7) "565848," [2]=> string(4) "sdf," [3]=> string(4) "dsf," [4]=> string(4) "sdf," [5]=> string(15) "новаева," [6]=> string(2) "f," [7]=> string(0) "" } }

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:
54.52 ms | 402 KiB | 8 Q