3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = "-10 ayanami_rei"; preg_match_all('/-\d+/', $tags, $matches); var_dump($matches); if ($matches[0]){ $loop = substr($matches[0],1,strlen($matches[0])); $tags = str_replace("{$matches[0]} ","",$tags); $loop = ($loop >=11 ? 10 : $loop); } else { $loop = 1; } for ($i = 1; $i <= $loop; $i++) { echo $tags; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 36
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 39
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 39
Branch analysis from position: 43
Branch analysis from position: 39
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
filename:       /in/L4OuD
function name:  (null)
number of ops:  44
compiled vars:  !0 = $tags, !1 = $matches, !2 = $loop, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '-10+ayanami_rei'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F-%5Cd%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~7      !1, 0
         10      > JMPZ                                                     ~7, ->36
    7    11    >   INIT_FCALL                                               'substr'
         12        FETCH_DIM_R                                      ~8      !1, 0
         13        SEND_VAL                                                 ~8
         14        SEND_VAL                                                 1
         15        FETCH_DIM_R                                      ~9      !1, 0
         16        STRLEN                                           ~10     ~9
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
    8    20        INIT_FCALL                                               'str_replace'
         21        FETCH_DIM_R                                      ~13     !1, 0
         22        NOP                                                      
         23        FAST_CONCAT                                      ~14     ~13, '+'
         24        SEND_VAL                                                 ~14
         25        SEND_VAL                                                 ''
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $15     
         28        ASSIGN                                                   !0, $15
    9    29        IS_SMALLER_OR_EQUAL                                      11, !2
         30      > JMPZ                                                     ~17, ->33
         31    >   QM_ASSIGN                                        ~18     10
         32      > JMP                                                      ->34
         33    >   QM_ASSIGN                                        ~18     !2
         34    >   ASSIGN                                                   !2, ~18
         35      > JMP                                                      ->37
   11    36    >   ASSIGN                                                   !2, 1
   14    37    >   ASSIGN                                                   !3, 1
         38      > JMP                                                      ->41
   15    39    >   ECHO                                                     !0
   14    40        PRE_INC                                                  !3
         41    >   IS_SMALLER_OR_EQUAL                                      !3, !2
         42      > JMPNZ                                                    ~23, ->39
   16    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.94 ms | 1400 KiB | 21 Q