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); }

preferences:
32.13 ms | 405 KiB | 5 Q