3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'lorem ipsum'; for ($length = 0; isset($str[$length]); $length++); echo $length;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 3
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 3
Branch analysis from position: 6
Branch analysis from position: 3
filename:       /in/4kr1T
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str, !1 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'lorem+ipsum'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->4
          3    >   PRE_INC                                                  !1
          4    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, !1
          5      > JMPNZ                                                    ~5, ->3
    7     6    >   ECHO                                                     !1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.87 ms | 1392 KiB | 13 Q