3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo hexdec("FAAA"); echo PHP_EOL; echo decbin(65534); echo PHP_EOL; $bin = "1111111111111110"; if($bin[0] == 1 ){ for ($i=0; $i < strlen($bin); $i++) { if ($bin[$i] == 0 ) { $bin[$i] = 1; } else { $bin[$i] = 0; } } } echo -$bin << 1;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 28
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 16
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 16
Branch analysis from position: 28
Branch analysis from position: 16
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 16
Branch analysis from position: 28
Branch analysis from position: 16
Branch analysis from position: 28
filename:       /in/CgP7s
function name:  (null)
number of ops:  32
compiled vars:  !0 = $bin, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'hexdec'
          1        SEND_VAL                                                 'FAAA'
          2        DO_ICALL                                         $2      
          3        ECHO                                                     $2
    3     4        ECHO                                                     '%0A'
    4     5        INIT_FCALL                                               'decbin'
          6        SEND_VAL                                                 65534
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    6     9        ECHO                                                     '%0A'
    8    10        ASSIGN                                                   !0, '1111111111111110'
    9    11        FETCH_DIM_R                                      ~5      !0, 0
         12        IS_EQUAL                                                 ~5, 1
         13      > JMPZ                                                     ~6, ->28
   10    14    >   ASSIGN                                                   !1, 0
         15      > JMP                                                      ->25
   11    16    >   FETCH_DIM_R                                      ~8      !0, !1
         17        IS_EQUAL                                                 ~8, 0
         18      > JMPZ                                                     ~9, ->22
   13    19    >   ASSIGN_DIM                                               !0, !1
         20        OP_DATA                                                  1
         21      > JMP                                                      ->24
   16    22    >   ASSIGN_DIM                                               !0, !1
         23        OP_DATA                                                  0
   10    24    >   PRE_INC                                                  !1
         25    >   STRLEN                                           ~13     !0
         26        IS_SMALLER                                               !1, ~13
         27      > JMPNZ                                                    ~14, ->16
   20    28    >   MUL                                              ~15     !0, -1
         29        SL                                               ~16     ~15, 1
         30        ECHO                                                     ~16
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.99 ms | 1396 KiB | 17 Q