3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ["l_ka3a1", "l_ka3a2", "l_ka3a3"]; $arr2 = ["l_no_inspection", "l_elbab_alresi", "l_bab_alqa3a"]; $arr3 = ["notes", "notes", null]; $newArr = array_map(function($item1, $item2, $item3){ return [$item1, $item2, $item3]; }, $arr1, $arr2, $arr3); var_dump($newArr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U0Uo2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3, !3 = $newArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                          ~7      [0]
    8     5        SEND_VAL                                                 ~7
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !2
    6     9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
   10    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > 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/U0Uo2
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $item1, !1 = $item2, !2 = $item3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        INIT_ARRAY                                       ~3      !0
          4        ADD_ARRAY_ELEMENT                                ~3      !1
          5        ADD_ARRAY_ELEMENT                                ~3      !2
          6      > RETURN                                                   ~3
    8     7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145 ms | 1003 KiB | 15 Q