3v4l.org

run code in 300+ PHP versions simultaneously
<?php $players = [ ["account_id" => 4294967295, "kills" => 0, "deaths" => 0, "assists" => 0], ["account_id" => 101863674, "kills" => 2, "deaths" => 1, "assists" => 3], ["account_id" => 112698809, "kills" => 5, "deaths" => 0, "assists" => 7], ]; $accountId = 112698809; var_export( array_find( $players, fn($row) => $player['account_id'] === $accountId ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTA0u
function name:  (null)
number of ops:  13
compiled vars:  !0 = $players, !1 = $accountId, !2 = $player
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 112698809
   10     2        INIT_FCALL                                               'var_export'
   11     3        INIT_FCALL_BY_NAME                                       'array_find'
   12     4        SEND_VAR_EX                                              !0
   13     5        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
          6        BIND_LEXICAL                                             ~5, !2
          7        BIND_LEXICAL                                             ~5, !1
   14     8        SEND_VAL_EX                                              ~5
   11     9        DO_FCALL                                      0  $6      
   14    10        SEND_VAR                                                 $6
   10    11        DO_ICALL                                                 
   15    12      > 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/lTA0u
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $row, !1 = $player, !2 = $accountId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
          3        FETCH_DIM_R                                      ~3      !1, 'account_id'
          4        IS_IDENTICAL                                     ~4      !2, ~3
          5      > RETURN                                                   ~4
   14     6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.26 ms | 1009 KiB | 14 Q