3v4l.org

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

Generated using Vulcan Logic Dumper, using php 7.2.0