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 = '0x'.$str; $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/YrDQS
function name:  (null)
number of ops:  44
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        CONCAT                                           ~23     '0x', !4
         32        ASSIGN                                                   !5, ~23
   10    33        INIT_FCALL_BY_NAME                                       'bcadd'
         34        SEND_VAR_EX                                              !5
         35        SEND_VAL_EX                                              '1'
         36        SEND_VAL_EX                                              0
         37        DO_FCALL                                      0  $25     
         38        ASSIGN                                                   !6, $25
   11    39        INIT_FCALL                                               'var_dump'
         40        MUL                                              ~27     !6, -1
         41        SEND_VAL                                                 ~27
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.39 ms | 1400 KiB | 21 Q