3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(?:\h*C\h+|\G(?!^))\h*,*\h*\K\d+/i'; $strings = [ "C 1,13,7,2,55", "c 1 , 12,15 , 8 , 9,10,11", "1,2 , 4,5", "d 12456, 9890" ]; foreach ($strings as $s) { if (preg_match_all($regex, $s, $matches)) { print_r($matches[0]); } }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1 [1] => 13 [2] => 7 [3] => 2 [4] => 55 ) Array ( [0] => 1 [1] => 12 [2] => 15 [3] => 8 [4] => 9 [5] => 10 [6] => 11 )

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:
155.92 ms | 405 KiB | 5 Q