3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 4, 7); $b = array(2, 5, 8); $c = array(3, 6, 9); function array_zip(...$arrays) { return array_merge(...array_map(NULL, ...$arrays)); } var_dump(implode(', ', array_zip($a, $b, $c))); var_dump(implode(', ', array_merge($a, $b, $c)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8pKf0
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
   10     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        INIT_FCALL                                               'array_zip'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
   12    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '%2C+'
         18        INIT_FCALL                                               'array_merge'
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $9      
         23        SEND_VAR                                                 $9
         24        DO_ICALL                                         $10     
         25        SEND_VAR                                                 $10
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Function array_zip:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8pKf0
function name:  array_zip
number of ops:  12
compiled vars:  !0 = $arrays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_VARIADIC                                    !0      
    8     1        INIT_FCALL                                               'array_merge'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 null
          4        SEND_UNPACK                                              !0
          5        CHECK_UNDEF_ARGS                                         
          6        DO_ICALL                                         $1      
          7        SEND_UNPACK                                              $1
          8        CHECK_UNDEF_ARGS                                         
          9        DO_ICALL                                         $2      
         10      > RETURN                                                   $2
    9    11*     > RETURN                                                   null

End of function array_zip

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.44 ms | 1398 KiB | 22 Q