3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s='123 123 12345'; echo $lenght = strlen($s); for($i=0;$i<=$lenght;$i++){ echo $s[$i]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/BRhbV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s, !1 = $lenght, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '123+123+12345'
    5     1        STRLEN                                           ~4      !0
          2        ASSIGN                                           ~5      !1, ~4
          3        ECHO                                                     ~5
    7     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->9
    8     6    >   FETCH_DIM_R                                      ~7      !0, !2
          7        ECHO                                                     ~7
    7     8        PRE_INC                                                  !2
          9    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         10      > JMPNZ                                                    ~9, ->6
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.07 ms | 1393 KiB | 13 Q