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)); }
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
1 jumps found. (Code = 62) Position 1 = -2
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/hoKIA
function name:  (null)
number of ops:  49
compiled vars:  !0 = $val, !1 = $i, !2 = $char
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                                           ~5      !0
          9        DIV                                              ~6      ~5, 16
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
    7    12        STRLEN                                           ~8      !0
         13        MOD                                              ~9      ~8, 16
         14        IS_EQUAL                                                 ~9, 0
         15      > JMPZ                                                     ~10, ->18
         16    >   QM_ASSIGN                                        ~11     2
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~11     1
         19    >   ADD                                              ~12     $7, ~11
         20        MUL                                              ~13     ~12, 16
         21        SEND_VAL                                                 ~13
   11    22        INIT_FCALL                                               'chr'
         23        STRLEN                                           ~14     !0
         24        MOD                                              ~15     ~14, 16
         25        SUB                                              ~16     16, ~15
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                         $17     
         28        SEND_VAR                                                 $17
         29        DO_ICALL                                         $18     
    4    30        ASSIGN                                                   !0, $18
   14    31        ASSIGN                                                   !1, 0
         32      > JMP                                                      ->45
   16    33    >   FETCH_DIM_R                                      ~21     !0, !1
         34        ASSIGN                                                   !2, ~21
   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                                         $24     
         42        SEND_VAR                                                 $24
         43        DO_ICALL                                                 
   14    44        PRE_INC                                                  !1
         45    >   STRLEN                                           ~27     !0
         46        IS_SMALLER                                               !1, ~27
         47      > JMPNZ                                                    ~28, ->33
   21    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.74 ms | 1400 KiB | 23 Q