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))); }
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 = 62) Position 1 = -2
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/f1VHG
function name:  (null)
number of ops:  25
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
    6    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1395 KiB | 19 Q