3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wi9Lk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array_filter, !1 = $keyword, !2 = $matches, !3 = $cat, !4 = $types
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWi9Lk%3A3%240'
          1        BIND_LEXICAL                                             ~5, !1
          2        ASSIGN                                                   !0, ~5
    4     3        FETCH_DIM_R                                      ~7      !3, 'name'
          4        INIT_FCALL                                               'array_push'
          5        INIT_FCALL                                               'array_filter'
          6        SEND_VAR                                                 !4
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $9      
          9        SEND_VAR_NO_REF                               0          $9
         10        DO_ICALL                                         $10     
         11        ASSIGN_DIM                                               !2, ~7
         12        OP_DATA                                                  $10
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWi9Lk%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wi9Lk
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $var, !1 = $keyword
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     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%2FWi9Lk%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.1 ms | 1395 KiB | 19 Q