3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('BR', "\n"); define('DS', DIRECTORY_SEPARATOR); $theArray = array( '1st' => 'First', '2nd' => 'Second', '3rd' => 'Third' ); foreach ($theArray as $elem) { var_dump($elem); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/0J2N5
function name:  (null)
number of ops:  17
compiled vars:  !0 = $theArray, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'BR'
          2        SEND_VAL                                                 '%0A'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'DS'
          6        SEND_VAL                                                 '%2F'
          7        DO_ICALL                                                 
    4     8        ASSIGN                                                   !0, <array>
   10     9      > FE_RESET_R                                       $5      !0, ->15
         10    > > FE_FETCH_R                                               $5, !1, ->15
   11    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   10    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $5
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.01 ms | 1395 KiB | 17 Q