3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'ditiseentest'; $length = 4; $expected = [ 'diti', 'itis', 'tise', 'isee', 'seen', 'eent', 'ente', 'ntes', 'test' ]; for($i=0;$i<strlen($string) - $length;$i++) { echo substr($string, $i, $length) . "\r\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
filename:       /in/L0ja4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $length, !2 = $expected, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ditiseentest'
    5     1        ASSIGN                                                   !1, 4
    7     2        ASSIGN                                                   !2, <array>
   19     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->13
   20     5    >   INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !3
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        CONCAT                                           ~9      $8, '%0D%0A'
         11        ECHO                                                     ~9
   19    12        PRE_INC                                                  !3
         13    >   STRLEN                                           ~11     !0
         14        SUB                                              ~12     ~11, !1
         15        IS_SMALLER                                               !3, ~12
         16      > JMPNZ                                                    ~13, ->5
   21    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.19 ms | 1395 KiB | 15 Q