3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Input: $_GET['inicio'] = '7'; $_GET['final'] = '45'; $_GET['incremento'] = '4'; // Trata o input: $inicio = $_GET['inicio'] ?? 0; $inicio = is_numeric($inicio) ? $inicio : 0; $final = $_GET['final'] ?? 0; $final = is_numeric($final) ? $final : 0; $incremento = $_GET['incremento'] ?? 1; $incremento = is_numeric($incremento) && $incremento != 0 ? $incremento : 1; // Faz o mesmo que o `while`: echo implode(' ', range($inicio, $final, $incremento));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
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
2 jumps found. (Code = 46) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 33
2 jumps found. (Code = 46) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
Branch analysis from position: 46
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
Branch analysis from position: 33
filename:       /in/GZDsq
function name:  (null)
number of ops:  62
compiled vars:  !0 = $inicio, !1 = $final, !2 = $incremento
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $3      '_GET'
          1        ASSIGN_DIM                                               $3, 'inicio'
          2        OP_DATA                                                  '7'
    4     3        FETCH_W                      global              $5      '_GET'
          4        ASSIGN_DIM                                               $5, 'final'
          5        OP_DATA                                                  '45'
    5     6        FETCH_W                      global              $7      '_GET'
          7        ASSIGN_DIM                                               $7, 'incremento'
          8        OP_DATA                                                  '4'
    9     9        FETCH_IS                                         ~9      '_GET'
         10        FETCH_DIM_IS                                     ~10     ~9, 'inicio'
         11        COALESCE                                         ~11     ~10
         12        QM_ASSIGN                                        ~11     0
         13        ASSIGN                                                   !0, ~11
   10    14        INIT_FCALL                                               'is_numeric'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $13     
         17      > JMPZ                                                     $13, ->20
         18    >   QM_ASSIGN                                        ~14     !0
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~14     0
         21    >   ASSIGN                                                   !0, ~14
   12    22        FETCH_IS                                         ~16     '_GET'
         23        FETCH_DIM_IS                                     ~17     ~16, 'final'
         24        COALESCE                                         ~18     ~17
         25        QM_ASSIGN                                        ~18     0
         26        ASSIGN                                                   !1, ~18
   13    27        INIT_FCALL                                               'is_numeric'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $20     
         30      > JMPZ                                                     $20, ->33
         31    >   QM_ASSIGN                                        ~21     !1
         32      > JMP                                                      ->34
         33    >   QM_ASSIGN                                        ~21     0
         34    >   ASSIGN                                                   !1, ~21
   15    35        FETCH_IS                                         ~23     '_GET'
         36        FETCH_DIM_IS                                     ~24     ~23, 'incremento'
         37        COALESCE                                         ~25     ~24
         38        QM_ASSIGN                                        ~25     1
         39        ASSIGN                                                   !2, ~25
   16    40        INIT_FCALL                                               'is_numeric'
         41        SEND_VAR                                                 !2
         42        DO_ICALL                                         $27     
         43      > JMPZ_EX                                          ~28     $27, ->46
         44    >   IS_NOT_EQUAL                                     ~29     !2, 0
         45        BOOL                                             ~28     ~29
         46    > > JMPZ                                                     ~28, ->49
         47    >   QM_ASSIGN                                        ~30     !2
         48      > JMP                                                      ->50
         49    >   QM_ASSIGN                                        ~30     1
         50    >   ASSIGN                                                   !2, ~30
   19    51        INIT_FCALL                                               'implode'
         52        SEND_VAL                                                 '+'
         53        INIT_FCALL                                               'range'
         54        SEND_VAR                                                 !0
         55        SEND_VAR                                                 !1
         56        SEND_VAR                                                 !2
         57        DO_ICALL                                         $32     
         58        SEND_VAR                                                 $32
         59        DO_ICALL                                         $33     
         60        ECHO                                                     $33
         61      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.54 ms | 1452 KiB | 16 Q