3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '$string = typ="bar" title="Example" enabled=true count=true style="float: left; width: 30%;"'; if (preg_match_all('~([^\s=]+)=(?|"([^"]*)"|(\S+))~', $s, $m, PREG_SET_ORDER, 0)) { print_r($m); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => typ="bar" [1] => typ [2] => bar ) [1] => Array ( [0] => title="Example" [1] => title [2] => Example ) [2] => Array ( [0] => enabled=true [1] => enabled [2] => true ) [3] => Array ( [0] => count=true [1] => count [2] => true ) [4] => Array ( [0] => style="float: left; width: 30%;" [1] => style [2] => float: left; width: 30%; ) )

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