3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 32767; $n = 20; $step = intval($max/$n); for ($i=0; $i<=$n; $i++) { echo base64_encode(pack('N', $i*$step)) . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/tEDYp
function name:  (null)
number of ops:  21
compiled vars:  !0 = $max, !1 = $n, !2 = $step, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 32767
    4     1        ASSIGN                                                   !1, 20
    5     2        DIV                                              ~6      !0, !1
          3        CAST                                          4  ~7      ~6
          4        ASSIGN                                                   !2, ~7
    7     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->18
    8     7    >   INIT_FCALL                                               'base64_encode'
          8        INIT_FCALL                                               'pack'
          9        SEND_VAL                                                 'N'
         10        MUL                                              ~10     !3, !2
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                         $11     
         13        SEND_VAR                                                 $11
         14        DO_ICALL                                         $12     
         15        CONCAT                                           ~13     $12, '%0A'
         16        ECHO                                                     ~13
    7    17        PRE_INC                                                  !3
         18    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         19      > JMPNZ                                                    ~15, ->7
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.6 ms | 1395 KiB | 17 Q