3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 10, 123 ); $buf = pack( "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 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 12
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 12
Branch analysis from position: 25
Branch analysis from position: 12
filename:       /in/XJcR3
function name:  (null)
number of ops:  26
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        SEND_VAL                                                 'N%2A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6        INIT_FCALL                                               'unpack'
          7        SEND_VAL                                                 'N%2A'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    8    11      > JMP                                                      ->17
    9    12    >   ROPE_INIT                                     4  ~11     !3
         13        ROPE_ADD                                      1  ~11     ~11, '+-%3E+'
         14        ROPE_ADD                                      2  ~11     ~11, !4
         15        ROPE_END                                      3  ~10     ~11, '%0A'
         16        ECHO                                                     ~10
    8    17    >   INIT_FCALL_BY_NAME                                       'each'
         18        SEND_VAR_EX                                              !2
         19        DO_FCALL                                      0  $13     
         20        FETCH_LIST_R                                     $14     $13, 0
         21        ASSIGN                                                   !3, $14
         22        FETCH_LIST_R                                     $16     $13, 1
         23        ASSIGN                                                   !4, $16
         24      > JMPNZ                                                    $13, ->12
   10    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.65 ms | 1395 KiB | 20 Q