3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA locgrouparray[i++] = new locgroup("E0.090 (33)", "E0.090 (33)", "#SPLUS6ECDBE", "MET"); locgrouparray[i++] = new locgroup("E0.092 (28)", "E0.092 (28)", "#SPLUS6ECDBF", "(none)"); locgrouparray[i++] = new locgroup("E0.111 (30)", "E0.111 (30)", "#SPLUS6ECDC0", "(none)"); locgrouparray[i++] = new locgroup("E0.113 (30)", "E0.113 (30)", "#SPLUS6ECDC1", "(none)"); DATA; preg_match_all('/new locgroup\("([^"]+)", "[^"]+", "([^"]+)", "([^"]+)"\)/', $data, $matches, PREG_SET_ORDER); $parsedData = array_map(function (array $m) { return array('Class' => $m[1], 'ClassId' => $m[2], 'type' => $m[3]); }, $matches); var_dump($parsedData);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> array(3) { ["Class"]=> string(11) "E0.090 (33)" ["ClassId"]=> string(12) "#SPLUS6ECDBE" ["type"]=> string(3) "MET" } [1]=> array(3) { ["Class"]=> string(11) "E0.092 (28)" ["ClassId"]=> string(12) "#SPLUS6ECDBF" ["type"]=> string(6) "(none)" } [2]=> array(3) { ["Class"]=> string(11) "E0.111 (30)" ["ClassId"]=> string(12) "#SPLUS6ECDC0" ["type"]=> string(6) "(none)" } [3]=> array(3) { ["Class"]=> string(11) "E0.113 (30)" ["ClassId"]=> string(12) "#SPLUS6ECDC1" ["type"]=> string(6) "(none)" } }

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