3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 11
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 11
Branch analysis from position: 25
Branch analysis from position: 11
filename:       /in/f1VHG
function name:  (null)
number of ops:  26
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                                                      ->23
   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        POST_INC                                         ~9      !0
        22        FREE                                                     ~9
        23    >   IS_SMALLER                                       ~10     !0, 10
        24      > JMPNZ                                                    ~10, ->11
   6    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0