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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4hAUg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $data, !1 = $matches, !2 = $parsedData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'locgrouparray%5Bi%2B%2B%5D+%3D+new+locgroup%28%22E0.090+%2833%29%22%2C+%22E0.090+%2833%29%22%2C+%22%23SPLUS6ECDBE%22%2C+%22MET%22%29%3B%0Alocgrouparray%5Bi%2B%2B%5D+%3D+new+locgroup%28%22E0.092+%2828%29%22%2C+%22E0.092+%2828%29%22%2C+%22%23SPLUS6ECDBF%22%2C+%22%28none%29%22%29%3B%0Alocgrouparray%5Bi%2B%2B%5D+%3D+new+locgroup%28%22E0.111+%2830%29%22%2C+%22E0.111+%2830%29%22%2C+%22%23SPLUS6ECDC0%22%2C+%22%28none%29%22%29%3B%0Alocgrouparray%5Bi%2B%2B%5D+%3D+new+locgroup%28%22E0.113+%2830%29%22%2C+%22E0.113+%2830%29%22%2C+%22%23SPLUS6ECDC1%22%2C+%22%28none%29%22%29%3B'
   10     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2Fnew+locgroup%5C%28%22%28%5B%5E%22%5D%2B%29%22%2C+%22%5B%5E%22%5D%2B%22%2C+%22%28%5B%5E%22%5D%2B%29%22%2C+%22%28%5B%5E%22%5D%2B%29%22%5C%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
   11     7        INIT_FCALL                                               'array_map'
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F4hAUg%3A11%240'
          9        SEND_VAL                                                 ~5
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
   12    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F4hAUg%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4hAUg
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        FETCH_DIM_R                                      ~1      !0, 1
          2        INIT_ARRAY                                       ~2      ~1, 'Class'
          3        FETCH_DIM_R                                      ~3      !0, 2
          4        ADD_ARRAY_ELEMENT                                ~2      ~3, 'ClassId'
          5        FETCH_DIM_R                                      ~4      !0, 3
          6        ADD_ARRAY_ELEMENT                                ~2      ~4, 'type'
          7      > RETURN                                                   ~2
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F4hAUg%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.3 ms | 1400 KiB | 19 Q