3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i += 1) { echo sprintf("Array element %d. Value contained is %d", $i, $arr[$i]); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
Branch analysis from position: 2
filename:       /in/kF4vc
function name:  (null)
number of ops:  13
compiled vars:  !0 = $i, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->10
    3     2    >   INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 'Array+element+%25d.+Value+contained+is+%25d'
          4        SEND_VAR                                                 !0
          5        FETCH_DIM_R                                      ~3      !1, !0
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
    2     9        ASSIGN_OP                                     1          !0, 1
         10    >   IS_SMALLER                                               !0, 10
         11      > JMPNZ                                                    ~6, ->2
    5    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.17 ms | 1394 KiB | 15 Q