3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 'DANIEL123'; var_dump($val); $val = str_pad($val, (16 * ( floor(strlen($val) / 16) + ( strlen($val) % 16 == 0 ? 2 : 1 ) ) ), chr(16 - (strlen($val) % 16) ) ); for ($i=0; $i<strlen($val); $i++) { $char = $val[$i]; var_dump($char); var_dump(ord($char)); } $lc = strlen($dec) - 1; return rtrim($dec, ( ( ord($dec[$lc]) >= 0 and ord($dec[$lc]) <= 16 ) ? $dec[$lc] : null));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 33
Branch analysis from position: 48
2 jumps found. (Code = 46) Position 1 = 59, Position 2 = 65
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 69
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 70
Branch analysis from position: 70
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 69
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 65
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 33
Branch analysis from position: 48
Branch analysis from position: 33
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
filename:       /in/uXA0u
function name:  (null)
number of ops:  74
compiled vars:  !0 = $val, !1 = $i, !2 = $char, !3 = $lc, !4 = $dec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '+'
    2     1        ASSIGN                                                   !0, 'DANIEL123'
    3     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'str_pad'
          6        SEND_VAR                                                 !0
    6     7        INIT_FCALL                                               'floor'
          8        STRLEN                                           ~7      !0
          9        DIV                                              ~8      ~7, 16
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                         $9      
    7    12        STRLEN                                           ~10     !0
         13        MOD                                              ~11     ~10, 16
         14        IS_EQUAL                                                 ~11, 0
         15      > JMPZ                                                     ~12, ->18
         16    >   QM_ASSIGN                                        ~13     2
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~13     1
         19    >   ADD                                              ~14     $9, ~13
         20        MUL                                              ~15     ~14, 16
         21        SEND_VAL                                                 ~15
   11    22        INIT_FCALL                                               'chr'
         23        STRLEN                                           ~16     !0
         24        MOD                                              ~17     ~16, 16
         25        SUB                                              ~18     16, ~17
         26        SEND_VAL                                                 ~18
         27        DO_ICALL                                         $19     
         28        SEND_VAR                                                 $19
         29        DO_ICALL                                         $20     
    4    30        ASSIGN                                                   !0, $20
   14    31        ASSIGN                                                   !1, 0
         32      > JMP                                                      ->45
   16    33    >   FETCH_DIM_R                                      ~23     !0, !1
         34        ASSIGN                                                   !2, ~23
   19    35        INIT_FCALL                                               'var_dump'
         36        SEND_VAR                                                 !2
         37        DO_ICALL                                                 
   20    38        INIT_FCALL                                               'var_dump'
         39        INIT_FCALL                                               'ord'
         40        SEND_VAR                                                 !2
         41        DO_ICALL                                         $26     
         42        SEND_VAR                                                 $26
         43        DO_ICALL                                                 
   14    44        PRE_INC                                                  !1
         45    >   STRLEN                                           ~29     !0
         46        IS_SMALLER                                               !1, ~29
         47      > JMPNZ                                                    ~30, ->33
   23    48    >   STRLEN                                           ~31     !4
         49        SUB                                              ~32     ~31, 1
         50        ASSIGN                                                   !3, ~32
   24    51        INIT_FCALL                                               'rtrim'
         52        SEND_VAR                                                 !4
   26    53        INIT_FCALL                                               'ord'
         54        FETCH_DIM_R                                      ~34     !4, !3
         55        SEND_VAL                                                 ~34
         56        DO_ICALL                                         $35     
         57        IS_SMALLER_OR_EQUAL                              ~36     0, $35
         58      > JMPZ_EX                                          ~36     ~36, ->65
   28    59    >   INIT_FCALL                                               'ord'
         60        FETCH_DIM_R                                      ~37     !4, !3
         61        SEND_VAL                                                 ~37
         62        DO_ICALL                                         $38     
         63        IS_SMALLER_OR_EQUAL                              ~39     $38, 16
         64        BOOL                                             ~36     ~39
         65    > > JMPZ                                                     ~36, ->69
   30    66    >   FETCH_DIM_R                                      ~40     !4, !3
         67        QM_ASSIGN                                        ~41     ~40
         68      > JMP                                                      ->70
   31    69    >   QM_ASSIGN                                        ~41     null
         70    >   SEND_VAL                                                 ~41
         71        DO_ICALL                                         $42     
         72      > RETURN                                                   $42
         73*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.3 ms | 1404 KiB | 25 Q