3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1=array("anu","jinu"); $array2=array("1","2","0"); $cnt1 = count($array1); $cnt2 = count($array2); if($cnt1>$cnt2) $array1=array_slice($array1, 0, $cnt2); elseif($cnt2>$cnt1) $array2=array_slice($array2, 0, $cnt1); $arr = array_combine($array1,$array2); print_r($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/OJlTV
function name:  (null)
number of ops:  32
compiled vars:  !0 = $array1, !1 = $array2, !2 = $cnt1, !3 = $cnt2, !4 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        COUNT                                            ~7      !0
          3        ASSIGN                                                   !2, ~7
    6     4        COUNT                                            ~9      !1
          5        ASSIGN                                                   !3, ~9
    7     6        IS_SMALLER                                               !3, !2
          7      > JMPZ                                                     ~11, ->15
    8     8    >   INIT_FCALL                                               'array_slice'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 0
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !0, $12
    7    14      > JMP                                                      ->23
    9    15    >   IS_SMALLER                                               !2, !3
         16      > JMPZ                                                     ~14, ->23
   10    17    >   INIT_FCALL                                               'array_slice'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 0
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $15     
         22        ASSIGN                                                   !1, $15
   11    23    >   INIT_FCALL                                               'array_combine'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !4, $17
   12    28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.78 ms | 1013 KiB | 16 Q