3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(’foo’, ’bar’, ’baz’); foreach ($array as $key => $value) { echo "$key: $value"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/crtYB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~3      '%E2%80%99foo%E2%80%99'
          1        INIT_ARRAY                                       ~4      ~3
          2        FETCH_CONSTANT                                   ~5      '%E2%80%99bar%E2%80%99'
          3        ADD_ARRAY_ELEMENT                                ~4      ~5
          4        FETCH_CONSTANT                                   ~6      '%E2%80%99baz%E2%80%99'
          5        ADD_ARRAY_ELEMENT                                ~4      ~6
          6        ASSIGN                                                   !0, ~4
    3     7      > FE_RESET_R                                       $8      !0, ->15
          8    > > FE_FETCH_R                                       ~9      $8, !1, ->15
          9    >   ASSIGN                                                   !2, ~9
    4    10        ROPE_INIT                                     3  ~12     !2
         11        ROPE_ADD                                      1  ~12     ~12, '%3A+'
         12        ROPE_END                                      2  ~11     ~12, !1
         13        ECHO                                                     ~11
    3    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $8
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.98 ms | 1393 KiB | 13 Q