3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(decbin(ord(chr(1)))); for ($i=0; $i<10; $i++) { var_dump(decbin(ord(chr(1) << $i))); } var_dump(decbin(ord(chr(24)))); for ($i=0; $i<10; $i++) { var_dump(decbin(ord(chr(24) >> $i))); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 11
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 35
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 35
Branch analysis from position: 48
Branch analysis from position: 35
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 11
Branch analysis from position: 24
Branch analysis from position: 11
filename:       /in/uEI1R
function name:  (null)
number of ops:  49
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'decbin'
          2        INIT_FCALL                                               'ord'
          3        SEND_VAL                                                 '%01'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    4     9        ASSIGN                                                   !0, 0
         10      > JMP                                                      ->22
    5    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'decbin'
         13        INIT_FCALL                                               'ord'
         14        SL                                               ~5      '%01', !0
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
    4    21        PRE_INC                                                  !0
         22    >   IS_SMALLER                                               !0, 10
         23      > JMPNZ                                                    ~10, ->11
    8    24    >   INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'decbin'
         26        INIT_FCALL                                               'ord'
         27        SEND_VAL                                                 '%18'
         28        DO_ICALL                                         $11     
         29        SEND_VAR                                                 $11
         30        DO_ICALL                                         $12     
         31        SEND_VAR                                                 $12
         32        DO_ICALL                                                 
    9    33        ASSIGN                                                   !0, 0
         34      > JMP                                                      ->46
   10    35    >   INIT_FCALL                                               'var_dump'
         36        INIT_FCALL                                               'decbin'
         37        INIT_FCALL                                               'ord'
         38        SR                                               ~15     '%18', !0
         39        SEND_VAL                                                 ~15
         40        DO_ICALL                                         $16     
         41        SEND_VAR                                                 $16
         42        DO_ICALL                                         $17     
         43        SEND_VAR                                                 $17
         44        DO_ICALL                                                 
    9    45        PRE_INC                                                  !0
         46    >   IS_SMALLER                                               !0, 10
         47      > JMPNZ                                                    ~20, ->35
   11    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.43 ms | 1392 KiB | 19 Q