3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "one" => 1, "two" => 2, "three" => 3, "seventeen" => 17 ); echo "<pre>"; echo print_r($a); echo "</pre>"; foreach ($a as $k => $v) { echo "\$a[$k] => $v.\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/J4I7g
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        ECHO                                                     '%3Cpre%3E'
   10     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ECHO                                                     $4
   11     6        ECHO                                                     '%3C%2Fpre%3E'
   13     7      > FE_RESET_R                                       $5      !0, ->17
          8    > > FE_FETCH_R                                       ~6      $5, !1, ->17
          9    >   ASSIGN                                                   !2, ~6
   14    10        ROPE_INIT                                     5  ~9      '%24a%5B'
         11        ROPE_ADD                                      1  ~9      ~9, !2
         12        ROPE_ADD                                      2  ~9      ~9, '%5D+%3D%3E+'
         13        ROPE_ADD                                      3  ~9      ~9, !1
         14        ROPE_END                                      4  ~8      ~9, '.%0A'
         15        ECHO                                                     ~8
   13    16      > JMP                                                      ->8
         17    >   FE_FREE                                                  $5
   15    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.46 ms | 1395 KiB | 15 Q