3v4l.org

run code in 300+ PHP versions simultaneously
<?php $literal = '23412167894125123'; for ($c = 0; $c < strlen($literal) - 2; $c++) { if(intval($literal[$c]) + 1 == intval($literal[$c + 1]) && intval($literal[$c]) + 2 == intval($literal[$c + 2])) { echo $literal[$c], $literal[$c + 1], $literal[$c + 2], '<br />'; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 3
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 29
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 3
Branch analysis from position: 34
Branch analysis from position: 3
Branch analysis from position: 29
Branch analysis from position: 19
filename:       /in/SvIOo
function name:  (null)
number of ops:  35
compiled vars:  !0 = $literal, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '23412167894125123'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->30
    6     3    >   FETCH_DIM_R                                      ~4      !0, !1
          4        CAST                                          4  ~5      ~4
          5        ADD                                              ~6      ~5, 1
          6        ADD                                              ~7      !1, 1
          7        FETCH_DIM_R                                      ~8      !0, ~7
          8        CAST                                          4  ~9      ~8
          9        IS_EQUAL                                         ~10     ~6, ~9
         10      > JMPZ_EX                                          ~10     ~10, ->19
    7    11    >   FETCH_DIM_R                                      ~11     !0, !1
         12        CAST                                          4  ~12     ~11
         13        ADD                                              ~13     ~12, 2
         14        ADD                                              ~14     !1, 2
         15        FETCH_DIM_R                                      ~15     !0, ~14
         16        CAST                                          4  ~16     ~15
         17        IS_EQUAL                                         ~17     ~13, ~16
         18        BOOL                                             ~10     ~17
         19    > > JMPZ                                                     ~10, ->29
    8    20    >   FETCH_DIM_R                                      ~18     !0, !1
         21        ECHO                                                     ~18
         22        ADD                                              ~19     !1, 1
         23        FETCH_DIM_R                                      ~20     !0, ~19
         24        ECHO                                                     ~20
         25        ADD                                              ~21     !1, 2
         26        FETCH_DIM_R                                      ~22     !0, ~21
         27        ECHO                                                     ~22
         28        ECHO                                                     '%3Cbr+%2F%3E'
    5    29    >   PRE_INC                                                  !1
         30    >   STRLEN                                           ~24     !0
         31        SUB                                              ~25     ~24, 2
         32        IS_SMALLER                                               !1, ~25
         33      > JMPNZ                                                    ~26, ->3
   10    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.81 ms | 1003 KiB | 13 Q