3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["id" => 0, "input_Data" => "Up to 15 Groups / Month"], ["id" => 1, "input_Data" => "Up to 60 CSV File Importing / Month"], ["id" => 2, "input_Data" => "Up to 15 SMTP Config"], ["id" => 3, "input_Data" => "Up to 20 Email Template Can Make"], ["id" => 4, "input_Data" => "Up to 150 Ai Writer Call / Month"], ["id" => 5, "input_Data" => "Markitach SMTP Limit 1000 Emails"] ]; $find = 3; $replace = "Up to the boss"; $index = array_find_key($array, fn($row) => $row['id'] === $find); if ($index !== null) { $array[$index]['input_Data'] = $replace; } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/MXbGe
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $find, !2 = $replace, !3 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 3
   13     2        ASSIGN                                                   !2, 'Up+to+the+boss'
   14     3        INIT_FCALL_BY_NAME                                       'array_find_key'
          4        SEND_VAR_EX                                              !0
          5        DECLARE_LAMBDA_FUNCTION                          ~7      [0]
          6        BIND_LEXICAL                                             ~7, !1
          7        SEND_VAL_EX                                              ~7
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !3, $8
   15    10        TYPE_CHECK                                  1020          !3
         11      > JMPZ                                                     ~10, ->15
   16    12    >   FETCH_DIM_W                                      $11     !0, !3
         13        ASSIGN_DIM                                               $11, 'input_Data'
         14        OP_DATA                                                  !2
   18    15    >   INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > 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/MXbGe
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $row, !1 = $find
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        FETCH_DIM_R                                      ~2      !0, 'id'
          3        IS_IDENTICAL                                     ~3      !1, ~2
          4      > RETURN                                                   ~3
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.37 ms | 1000 KiB | 14 Q