3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach([1 => 'test', 2 => 'test'] as $count=>$test){ ob_start(); echo $count; $cached = ob_get_contents(); ob_end_clean(); echo $cached; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 13
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/jd0c6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $test, !1 = $count, !2 = $cached
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $3      <array>, ->13
          1    > > FE_FETCH_R                                       ~4      $3, !0, ->13
          2    >   ASSIGN                                                   !1, ~4
    4     3        INIT_FCALL                                               'ob_start'
          4        DO_ICALL                                                 
    5     5        ECHO                                                     !1
    6     6        INIT_FCALL                                               'ob_get_contents'
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    7     9        INIT_FCALL                                               'ob_end_clean'
         10        DO_ICALL                                                 
    8    11        ECHO                                                     !2
    3    12      > JMP                                                      ->1
         13    >   FE_FREE                                                  $3
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.47 ms | 1386 KiB | 19 Q