3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 10, 123 ); $buf = call_user_func_array("pack", array_merge(array("N*"), $data)); $valArray = unpack( "N*", $buf ); while( list( $key, $val ) = each( $valArray ) ) { echo "$key -> $val\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 16
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 16
Branch analysis from position: 29
Branch analysis from position: 16
filename:       /in/d2mN0
function name:  (null)
number of ops:  30
compiled vars:  !0 = $data, !1 = $buf, !2 = $valArray, !3 = $key, !4 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'pack'
          2        INIT_FCALL                                               'array_merge'
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        SEND_ARRAY                                               $6
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    6    10        INIT_FCALL                                               'unpack'
         11        SEND_VAL                                                 'N%2A'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15      > JMP                                                      ->21
    9    16    >   ROPE_INIT                                     4  ~12     !3
         17        ROPE_ADD                                      1  ~12     ~12, '+-%3E+'
         18        ROPE_ADD                                      2  ~12     ~12, !4
         19        ROPE_END                                      3  ~11     ~12, '%0A'
         20        ECHO                                                     ~11
    8    21    >   INIT_FCALL_BY_NAME                                       'each'
         22        SEND_VAR_EX                                              !2
         23        DO_FCALL                                      0  $14     
         24        FETCH_LIST_R                                     $15     $14, 0
         25        ASSIGN                                                   !3, $15
         26        FETCH_LIST_R                                     $17     $14, 1
         27        ASSIGN                                                   !4, $17
         28      > JMPNZ                                                    $14, ->16
   10    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.01 ms | 1396 KiB | 19 Q