3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'some thing here'; foreach ($string as $char) { var_dump($char); } for ($i = 0; $i < strlen($string); $i++) { var_dump($string[$i]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
Branch analysis from position: 10
Branch analysis from position: 7
filename:       /in/XrYSX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $char, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'some+thing+here'
    5     1      > FE_RESET_R                                       $4      !0, ->7
          2    > > FE_FETCH_R                                               $4, !1, ->7
    6     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    5     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $4
    9     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->15
   10    10    >   INIT_FCALL                                               'var_dump'
         11        FETCH_DIM_R                                      ~7      !0, !2
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
    9    14        PRE_INC                                                  !2
         15    >   STRLEN                                           ~10     !0
         16        IS_SMALLER                                               !2, ~10
         17      > JMPNZ                                                    ~11, ->10
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.69 ms | 1395 KiB | 15 Q