3v4l.org

run code in 300+ PHP versions simultaneously
<?php $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43"); $result[0] = $age; foreach($result as $x=>$x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo "<br>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/6iNDr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $age, !1 = $result, !2 = $x_value, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !1, 0
          2        OP_DATA                                                  !0
    5     3      > FE_RESET_R                                       $6      !1, ->12
          4    > > FE_FETCH_R                                       ~7      $6, !2, ->12
          5    >   ASSIGN                                                   !3, ~7
    6     6        CONCAT                                           ~9      'Key%3D', !3
          7        CONCAT                                           ~10     ~9, '%2C+Value%3D'
          8        CONCAT                                           ~11     ~10, !2
          9        ECHO                                                     ~11
    7    10        ECHO                                                     '%3Cbr%3E'
    5    11      > JMP                                                      ->4
         12    >   FE_FREE                                                  $6
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.78 ms | 1393 KiB | 13 Q