3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bindump($ord) { printf("%016b\n", ord($ord)); } $one = "1"; bindump($one); for ($i=0; $i<10; $i++) { bindump($one << $i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/FvN5A
function name:  (null)
number of ops:  14
compiled vars:  !0 = $one, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '1'
   10     1        INIT_FCALL                                               'bindump'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   12     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->11
   13     6    >   INIT_FCALL                                               'bindump'
          7        SL                                               ~5      !0, !1
          8        SEND_VAL                                                 ~5
          9        DO_FCALL                                      0          
   12    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 10
         12      > JMPNZ                                                    ~8, ->6
   14    13    > > RETURN                                                   1

Function bindump:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FvN5A
function name:  bindump
number of ops:  9
compiled vars:  !0 = $ord
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 '%25016b%0A'
          3        INIT_FCALL                                               'ord'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    6     8      > RETURN                                                   null

End of function bindump

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.19 ms | 1398 KiB | 19 Q