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); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/hJcmW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $s, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%24string+%3D+typ%3D%22bar%22+title%3D%22Example%22+enabled%3Dtrue+count%3Dtrue+style%3D%22float%3A+left%3B+width%3A+30%25%3B%22'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%28%5B%5E%5Cs%3D%5D%2B%29%3D%28%3F%7C%22%28%5B%5E%22%5D%2A%29%22%7C%28%5CS%2B%29%29%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $3      
          8      > JMPZ                                                     $3, ->12
    5     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1010 KiB | 15 Q