3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:\[(?=[^][]*])(\w+)|\G(?!^))\h+(\w+)="([^"]+)"/'; $str = '[shortcode name param1="value1" param2="value2" param3="value3"] [specs product="test" category="body"] [pricelist keyword="216"] [specs product="test2" category="network"]'; preg_match_all($re, $str, $matches); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => [specs product="test" [1] => category="body" [2] => [pricelist keyword="216" [3] => [specs product="test2" [4] => category="network" ) [1] => Array ( [0] => specs [1] => [2] => pricelist [3] => specs [4] => ) [2] => Array ( [0] => product [1] => category [2] => keyword [3] => product [4] => category ) [3] => Array ( [0] => test [1] => body [2] => 216 [3] => test2 [4] => network ) )

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:
184.17 ms | 407 KiB | 5 Q