3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2, 3); $b = array( 'lol' => 'whut', 'ohgod' => 'why', 'please' => 'stop', ); next($b); foreach ($a as $v) { var_dump($v); if ($v == 2) { // this array is lame, let's bail $a = $b; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/PVqXT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    9     2        INIT_FCALL                                               'next'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
   10     5      > FE_RESET_R                                       $6      !0, ->14
          6    > > FE_FETCH_R                                               $6, !2, ->14
   11     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   12    10        IS_EQUAL                                                 !2, 2
         11      > JMPZ                                                     ~8, ->13
   14    12    >   ASSIGN                                                   !0, !1
   10    13    > > JMP                                                      ->6
         14    >   FE_FREE                                                  $6
   16    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.41 ms | 1395 KiB | 17 Q