3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = getallheaders(); while (list ($header, $value) = each ($headers)) { echo "$header: $value\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
Branch analysis from position: 4
filename:       /in/fYPXJ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $headers, !1 = $header, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'getallheaders'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
    3     3      > JMP                                                      ->9
    4     4    >   ROPE_INIT                                     4  ~6      !1
          5        ROPE_ADD                                      1  ~6      ~6, '%3A+'
          6        ROPE_ADD                                      2  ~6      ~6, !2
          7        ROPE_END                                      3  ~5      ~6, '%0A'
          8        ECHO                                                     ~5
    3     9    >   INIT_FCALL_BY_NAME                                       'each'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $8      
         12        FETCH_LIST_R                                     $9      $8, 0
         13        ASSIGN                                                   !1, $9
         14        FETCH_LIST_R                                     $11     $8, 1
         15        ASSIGN                                                   !2, $11
         16      > JMPNZ                                                    $8, ->4
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.83 ms | 1394 KiB | 16 Q