3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("1","2","3","4","5"); $array2 = array("apple","banana","","dog",""); $array2 = array_map(function($v){ return (empty($v)) ? "No Value" : $v; },$array2); $key_value = array_combine($array1,$array2); print_r($key_value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CY4ku
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array1, !1 = $array2, !2 = $key_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCY4ku%3A6%240'
    8     4        SEND_VAL                                                 ~5
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
    6     7        ASSIGN                                                   !1, $6
   10     8        INIT_FCALL                                               'array_combine'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   11    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FCY4ku%3A6%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CY4ku
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      'No+Value'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      !0
          6    > > RETURN                                                   ~2
    8     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FCY4ku%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.72 ms | 1396 KiB | 19 Q