3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array ( '0' => array ( 'name' => 'categoryfilter', 'value' => 127 ), '1' => array ( 'name' => 'price_min', 'value' => 'sd', ), '2' => array ( 'name' => 'price_max', 'value' => 'sdsd' ), '3' => array ( 'name' => 'action', 'value' => 'myfilter' ), '4' => array ( 'name' => 'quantity', 'value' => 1 ), '5' => array ( 'name' => 'quantity', 'value' => 1 ), '6' => array ( 'name' => 'quantity', 'value' => 1 ), '7' => array ( 'name' => 'quantity', 'value' => 0 ), '8' => array ( 'name' => 'quantity', 'value' => 0 ), '9' => array ( 'name' => 'quantity', 'value' => 0 ), '10' => array ( 'name' => 'quantity', 'value' => 1 ) ); $f = array_filter($a, function($v){return $v['name'] != 'quantity';}); print_r($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqoLj
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   70     1        INIT_FCALL                                                   'array_filter'
          2        SEND_VAR                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
          4        SEND_VAL                                                     ~3
          5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
   71     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqoLj
function name:  {closure:/in/DqoLj:70}
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   70     0  E >   RECV                                                 !0      
          1        FETCH_DIM_R                                          ~1      !0, 'name'
          2        IS_NOT_EQUAL                                         ~2      ~1, 'quantity'
          3      > RETURN                                                       ~2
          4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.42 ms | 2327 KiB | 15 Q