3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start(); for ($i = 0; $i < 10; $i++) { echo $i; } $output = ob_get_contents(); ob_end_clean(); echo $ouput; ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 7
Branch analysis from position: 7
Jump found. Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
Jump found. Position 1 = -2
Branch analysis from position: 4
Jump found. Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/N2lvj
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $output, !2 = $ouput
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'ob_start'
         1        DO_ICALL                                                 
   3     2        ASSIGN                                                   !0, 0
         3      > JMP                                                      ->7
   4     4    >   ECHO                                                     !0
   3     5        POST_INC                                         ~5      !0
         6        FREE                                                     ~5
         7    >   IS_SMALLER                                       ~6      !0, 10
         8      > JMPNZ                                                    ~6, ->4
   6     9    >   INIT_FCALL                                               'ob_get_contents'
        10        DO_ICALL                                         $7      
        11        ASSIGN                                                   !1, $7
   7    12        INIT_FCALL                                               'ob_end_clean'
        13        DO_ICALL                                                 
   8    14        ECHO                                                     !2
        15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0