3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array["a"] = "Foo"; $array["b"] = ""; $array["c"] = "Baz"; $array["d"] = "Wom"; //print end($array) . "\n"; foreach ($array as $val) { print $val . "\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/F4gQI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'a'
          1        OP_DATA                                                  'Foo'
    3     2        ASSIGN_DIM                                               !0, 'b'
          3        OP_DATA                                                  ''
    4     4        ASSIGN_DIM                                               !0, 'c'
          5        OP_DATA                                                  'Baz'
    5     6        ASSIGN_DIM                                               !0, 'd'
          7        OP_DATA                                                  'Wom'
    8     8      > FE_RESET_R                                       $6      !0, ->13
          9    > > FE_FETCH_R                                               $6, !1, ->13
    9    10    >   CONCAT                                           ~7      !1, '%0A'
         11        ECHO                                                     ~7
    8    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $6
   11    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1393 KiB | 13 Q