3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2FDqoLj%3A70%240'
          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

Function %00%7Bclosure%7D%2Fin%2FDqoLj%3A70%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqoLj
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2FDqoLj%3A70%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.92 ms | 1395 KiB | 17 Q