3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array( array( 'order_cart_id' => 1, ), array( 'order_cart_id' => 2, ), array( 'order_cart_id' => 3, ), array( 'order_cart_id' => 4, ), ); for ($f = 1; $f <= 100000; $f++) { $carts = array_filter(array_map(function($cart){ return (!empty($cart['order_cart_id'])) ? (int) $cart['order_cart_id'] : NULL; }, $list)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/kWdOS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $list, !1 = $f, !2 = $carts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->13
   19     3    >   INIT_FCALL                                               'array_filter'
          4        INIT_FCALL                                               'array_map'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkWdOS%3A19%240'
   21     6        SEND_VAL                                                 ~5
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
   19    11        ASSIGN                                                   !2, $7
   18    12        PRE_INC                                                  !1
         13    >   IS_SMALLER_OR_EQUAL                                      !1, 100000
         14      > JMPNZ                                                    ~10, ->3
   22    15    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkWdOS%3A19%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWdOS
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $cart
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   20     1        ISSET_ISEMPTY_DIM_OBJ                         1  ~1      !0, 'order_cart_id'
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->8
          4    >   FETCH_DIM_R                                      ~3      !0, 'order_cart_id'
          5        CAST                                          4  ~4      ~3
          6        QM_ASSIGN                                        ~5      ~4
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~5      null
          9    > > RETURN                                                   ~5
   21    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkWdOS%3A19%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.4 ms | 1388 KiB | 17 Q