3v4l.org

run code in 300+ PHP versions simultaneously
<?php $adjuntos = array(array('idAdjunto' => 1), array('idAdjunto' => 2)); var_dump(array_shift($adjuntos)); die; $res = array_filter($adjuntos, function($item) { return $item['idAdjunto'] == 1; }); var_dump($res || false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/TS8Km
function name:  (null)
number of ops:  20
compiled vars:  !0 = $adjuntos, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_shift'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    7     7      > EXIT                                                     
    9     8*       INIT_FCALL                                               'array_filter'
          9*       SEND_VAR                                                 !0
         10*       DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTS8Km%3A9%240'
   11    11*       SEND_VAL                                                 ~5
         12*       DO_ICALL                                         $6      
    9    13*       ASSIGN                                                   !1, $6
   12    14*       INIT_FCALL                                               'var_dump'
         15*       JMPNZ_EX                                         ~8      !1, ->17
         16*       BOOL                                             ~8      <false>
         17*       SEND_VAL                                                 ~8
         18*       DO_ICALL                                                 
         19*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTS8Km%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TS8Km
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        FETCH_DIM_R                                      ~1      !0, 'idAdjunto'
          2        IS_EQUAL                                         ~2      ~1, 1
          3      > RETURN                                                   ~2
   11     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTS8Km%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1400 KiB | 19 Q