3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "arrays" => [ "hihi" => [ "one" => "14000", "two" => "15000", "three" => "16000" ], "huhu" => [ "one" => "69997", "two" => "72000", "three" => "77000" ] ]]; $newArray = array_map(function($v) { unset($v["two"]); return $v; }, $array["arrays"]); print_r($newArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AeXrO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   20     3        SEND_VAL                                                 ~3
          4        FETCH_DIM_R                                      ~4      !0, 'arrays'
          5        SEND_VAL                                                 ~4
   17     6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   22     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         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/AeXrO
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        UNSET_DIM                                                !0, 'two'
   19     2      > RETURN                                                   !0
   20     3*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.33 ms | 1002 KiB | 15 Q