3v4l.org

run code in 300+ PHP versions simultaneously
<?php $characters = array( array( "name" => "A", "occupation" => "A1", "age" => 30, "special power" => "A3" ), array( "name" => "B", "occupation" => "B1", "age" => 24, "special power" => "B2" ), array( "name" => "C", "occupation" => "C1", "age" => 45, "special power" => "C2" ) ); foreach ($characters as $c) { while (list($k, $v) = each ($c)) { echo "$k ... $v <br/>"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
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 = 42) Position 1 = 2
Branch analysis from position: 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
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/Uo6Ye
function name:  (null)
number of ops:  20
compiled vars:  !0 = $characters, !1 = $c, !2 = $k, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   23     1      > FE_RESET_R                                       $5      !0, ->18
          2    > > FE_FETCH_R                                               $5, !1, ->18
   24     3    > > JMP                                                      ->9
   25     4    >   ROPE_INIT                                     4  ~7      !2
          5        ROPE_ADD                                      1  ~7      ~7, '+...+'
          6        ROPE_ADD                                      2  ~7      ~7, !3
          7        ROPE_END                                      3  ~6      ~7, '+%3Cbr%2F%3E'
          8        ECHO                                                     ~6
   24     9    >   INIT_FCALL_BY_NAME                                       'each'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0  $9      
         12        FETCH_LIST_R                                     $10     $9, 0
         13        ASSIGN                                                   !2, $10
         14        FETCH_LIST_R                                     $12     $9, 1
         15        ASSIGN                                                   !3, $12
         16      > JMPNZ                                                    $9, ->4
   23    17    > > JMP                                                      ->2
         18    >   FE_FREE                                                  $5
   29    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.62 ms | 1398 KiB | 13 Q