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); 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 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/MZDXO
function name:  (null)
number of ops:  18
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
   12     6      > FE_RESET_R                                       $5      !0, ->16
          7    > > FE_FETCH_R                                       ~6      $5, !1, ->16
          8    >   ASSIGN                                                   !2, ~6
   13     9        ROPE_INIT                                     5  ~9      '%24a%5B'
         10        ROPE_ADD                                      1  ~9      ~9, !2
         11        ROPE_ADD                                      2  ~9      ~9, '%5D+%3D%3E+'
         12        ROPE_ADD                                      3  ~9      ~9, !1
         13        ROPE_END                                      4  ~8      ~9, '.%0A'
         14        ECHO                                                     ~8
   12    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $5
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.99 ms | 1395 KiB | 15 Q