3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = base_convert("ffffffffffffffff",16,2); $arr = str_split($num); for ($i=0,$max = count($arr)-1; $i <=$max; $i++) { $arr[$i] = ($arr[$i] == '1')? '0' : '1'; } $str = join('',$arr); $converted = base_convert($str,2,10); $result = bcadd($converted, "1",0); var_dump(-$result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 15
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 15
Branch analysis from position: 26
Branch analysis from position: 15
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 15
Branch analysis from position: 26
Branch analysis from position: 15
filename:       /in/FFOq3
function name:  (null)
number of ops:  48
compiled vars:  !0 = $num, !1 = $arr, !2 = $i, !3 = $max, !4 = $str, !5 = $converted, !6 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'base_convert'
          1        SEND_VAL                                                 'ffffffffffffffff'
          2        SEND_VAL                                                 16
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !0, $7
    3     6        INIT_FCALL                                               'str_split'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !1, $9
    4    10        ASSIGN                                                   !2, 0
         11        COUNT                                            ~12     !1
         12        SUB                                              ~13     ~12, 1
         13        ASSIGN                                                   !3, ~13
         14      > JMP                                                      ->24
    6    15    >   FETCH_DIM_R                                      ~16     !1, !2
         16        IS_EQUAL                                                 ~16, '1'
         17      > JMPZ                                                     ~17, ->20
         18    >   QM_ASSIGN                                        ~18     '0'
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~18     '1'
         21    >   ASSIGN_DIM                                               !1, !2
         22        OP_DATA                                                  ~18
    4    23        PRE_INC                                                  !2
         24    >   IS_SMALLER_OR_EQUAL                                      !2, !3
         25      > JMPNZ                                                    ~20, ->15
    8    26    >   INIT_FCALL                                               'join'
         27        SEND_VAL                                                 ''
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $21     
         30        ASSIGN                                                   !4, $21
    9    31        INIT_FCALL                                               'base_convert'
         32        SEND_VAR                                                 !4
         33        SEND_VAL                                                 2
         34        SEND_VAL                                                 10
         35        DO_ICALL                                         $23     
         36        ASSIGN                                                   !5, $23
   10    37        INIT_FCALL_BY_NAME                                       'bcadd'
         38        SEND_VAR_EX                                              !5
         39        SEND_VAL_EX                                              '1'
         40        SEND_VAL_EX                                              0
         41        DO_FCALL                                      0  $25     
         42        ASSIGN                                                   !6, $25
   11    43        INIT_FCALL                                               'var_dump'
         44        MUL                                              ~27     !6, -1
         45        SEND_VAL                                                 ~27
         46        DO_ICALL                                                 
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1400 KiB | 21 Q