3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 32767; $n = 20; $step = intval($max/$n); for ($i=0; $i<=$n; $i++) { $val = $i*$step; $uint16 = base64_encode(pack('S', $val)); $uint32 = base64_encode(pack('N', $val)); $str = base64_encode(strval($val)); echo "$uint16 $uint32 $str $val \n";}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 7
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 7
Branch analysis from position: 42
Branch analysis from position: 7
filename:       /in/FKuJB
function name:  (null)
number of ops:  43
compiled vars:  !0 = $max, !1 = $n, !2 = $step, !3 = $i, !4 = $val, !5 = $uint16, !6 = $uint32, !7 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 32767
    4     1        ASSIGN                                                   !1, 20
    5     2        DIV                                              ~10     !0, !1
          3        CAST                                          4  ~11     ~10
          4        ASSIGN                                                   !2, ~11
    7     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->40
    8     7    >   MUL                                              ~14     !3, !2
          8        ASSIGN                                                   !4, ~14
    9     9        INIT_FCALL                                               'base64_encode'
         10        INIT_FCALL                                               'pack'
         11        SEND_VAL                                                 'S'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $16     
         14        SEND_VAR                                                 $16
         15        DO_ICALL                                         $17     
         16        ASSIGN                                                   !5, $17
   10    17        INIT_FCALL                                               'base64_encode'
         18        INIT_FCALL                                               'pack'
         19        SEND_VAL                                                 'N'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                         $19     
         22        SEND_VAR                                                 $19
         23        DO_ICALL                                         $20     
         24        ASSIGN                                                   !6, $20
   11    25        INIT_FCALL                                               'base64_encode'
         26        CAST                                          6  ~22     !4
         27        SEND_VAL                                                 ~22
         28        DO_ICALL                                         $23     
         29        ASSIGN                                                   !7, $23
   12    30        ROPE_INIT                                     8  ~26     !5
         31        ROPE_ADD                                      1  ~26     ~26, '+'
         32        ROPE_ADD                                      2  ~26     ~26, !6
         33        ROPE_ADD                                      3  ~26     ~26, '+'
         34        ROPE_ADD                                      4  ~26     ~26, !7
         35        ROPE_ADD                                      5  ~26     ~26, '+'
         36        ROPE_ADD                                      6  ~26     ~26, !4
         37        ROPE_END                                      7  ~25     ~26, '+%0A'
         38        ECHO                                                     ~25
    7    39        PRE_INC                                                  !3
         40    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         41      > JMPNZ                                                    ~31, ->7
   12    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.6 ms | 1400 KiB | 17 Q