3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('some' => 'data', 'to' => 'test', 'with' => 'something'); foreach ($data as $k => $v) { echo $k; if ($v == 'data') { $exploded = explode($data, 'a'); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/kRG1R
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data, !1 = $v, !2 = $k, !3 = $exploded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $5      !0, ->13
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->13
          3    >   ASSIGN                                                   !2, ~6
    4     4        ECHO                                                     !2
    5     5        IS_EQUAL                                                 !1, 'data'
          6      > JMPZ                                                     ~8, ->12
    6     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'a'
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
    3    12    > > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.74 ms | 1395 KiB | 15 Q