3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = [ [ 'uid' => '100', 'name' => 'Sandra Shush', 'pic_square' => 'urlof100' ], [ 'uid' => '5465', 'name' => 'Stefanie Mcmohn', 'pic_square' => 'urlof100' ], [ 'uid' => '40489', 'name' => 'Michael', 'pic_square' => 'urlof40489' ] ]; $uid = 100; var_export( array_find_key( $userdb, fn($row) => $row['uid'] == $uid ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hZ3rq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $userdb, !1 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        ASSIGN                                                   !1, 100
   22     2        INIT_FCALL                                               'var_export'
   23     3        INIT_FCALL_BY_NAME                                       'array_find_key'
   24     4        SEND_VAR_EX                                              !0
   25     5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          6        BIND_LEXICAL                                             ~4, !1
   26     7        SEND_VAL_EX                                              ~4
   23     8        DO_FCALL                                      0  $5      
   26     9        SEND_VAR                                                 $5
   22    10        DO_ICALL                                                 
   27    11      > 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/hZ3rq
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $row, !1 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        FETCH_DIM_R                                      ~2      !0, 'uid'
          3        IS_EQUAL                                         ~3      !1, ~2
          4      > RETURN                                                   ~3
   26     5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
123.26 ms | 999 KiB | 14 Q