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\("(?<Class>[^"]+)", "[^"]+", "(?<ClassId>[^"]+)", "(?<type>[^"]+)"\)/', $data, $matches, PREG_SET_ORDER); $parsedData = array_map(function (array $row) { return array_intersect_key($row, array_flip(array('Class', 'ClassId', 'type'))); }, $matches); var_dump($parsedData);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZMtqk
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%3F%3CClass%3E%5B%5E%22%5D%2B%29%22%2C+%22%5B%5E%22%5D%2B%22%2C+%22%28%3F%3CClassId%3E%5B%5E%22%5D%2B%29%22%2C+%22%28%3F%3Ctype%3E%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%2FZMtqk%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%2FZMtqk%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZMtqk
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'array_intersect_key'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'array_flip'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
          9*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.23 ms | 1396 KiB | 23 Q