3v4l.org

run code in 500+ PHP versions simultaneously
<?php $max = 130; $output = []; $current = 0; while($current <= $max) { if ($current < 100) { $current += 5; } else { $current += 25; } // Make sure we do not add anything above the current max (e.g. max = 120, current = 110 + 25 = 135) if ($current > $max) { break; } $output[] = $current; } print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
Branch analysis from position: 12
filename:       /in/EXjIV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $max, !1 = $output, !2 = $current
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 130
    4     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, 0
    6     3      > JMP                                                          ->14
    7     4    >   IS_SMALLER                                                   !2, 100
          5      > JMPZ                                                         ~6, ->8
    8     6    >   ASSIGN_OP                                         1          !2, 5
    7     7      > JMP                                                          ->9
   11     8    >   ASSIGN_OP                                         1          !2, 25
   15     9    >   IS_SMALLER                                                   !0, !2
         10      > JMPZ                                                         ~9, ->12
   16    11    > > JMP                                                          ->16
   18    12    >   ASSIGN_DIM                                                   !1
         13        OP_DATA                                                      !2
    6    14    >   IS_SMALLER_OR_EQUAL                                          !2, !0
         15      > JMPNZ                                                        ~11, ->4
   21    16    >   INIT_FCALL                                                   'print_r'
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                                     
   22    19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.06 ms | 1505 KiB | 9 Q