3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categories = array( array('name' => 'ImportOrders', 'keywords' => array('ImportOrders', 'CountriesArrayResponse')) ); $matches = array(); $types = $this->types; foreach($categories as $cat) { foreach($cat['keywords'] as $keyword) { $array_filter = function($var) use ($keyword) { return preg_match("/\b$keyword\b/i", $var); }; $matches[$cat['name']] = array_push(array_filter($types, $array_filter)); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 26
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 24
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 24
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 24
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/iRGZP
function name:  (null)
number of ops:  28
compiled vars:  !0 = $categories, !1 = $matches, !2 = $types, !3 = $cat, !4 = $keyword, !5 = $array_filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    7     2        FETCH_THIS                                       $8      
          3        FETCH_OBJ_R                                      ~9      $8, 'types'
          4        ASSIGN                                                   !2, ~9
    8     5      > FE_RESET_R                                       $11     !0, ->26
          6    > > FE_FETCH_R                                               $11, !3, ->26
    9     7    >   FETCH_DIM_R                                      ~12     !3, 'keywords'
          8      > FE_RESET_R                                       $13     ~12, ->24
          9    > > FE_FETCH_R                                               $13, !4, ->24
   10    10    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FiRGZP%3A10%240'
         11        BIND_LEXICAL                                             ~14, !4
         12        ASSIGN                                                   !5, ~14
   11    13        FETCH_DIM_R                                      ~16     !3, 'name'
         14        INIT_FCALL                                               'array_push'
         15        INIT_FCALL                                               'array_filter'
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !5
         18        DO_ICALL                                         $18     
         19        SEND_VAR_NO_REF                               0          $18
         20        DO_ICALL                                         $19     
         21        ASSIGN_DIM                                               !1, ~16
         22        OP_DATA                                                  $19
    9    23      > JMP                                                      ->9
         24    >   FE_FREE                                                  $13
    8    25      > JMP                                                      ->6
         26    >   FE_FREE                                                  $11
   13    27      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FiRGZP%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iRGZP
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $var, !1 = $keyword
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        INIT_FCALL                                               'preg_match'
          3        ROPE_INIT                                     3  ~3      '%2F%5Cb'
          4        ROPE_ADD                                      1  ~3      ~3, !1
          5        ROPE_END                                      2  ~2      ~3, '%5Cb%2Fi'
          6        SEND_VAL                                                 ~2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9      > RETURN                                                   $5
         10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FiRGZP%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.73 ms | 1405 KiB | 19 Q