3v4l.org

run code in 300+ PHP versions simultaneously
<?php // liczba caƂkowita w reprezentacji binarnej ile jest 1 function ileJedynekWBin($liczba) { $temp = (string) decbin($liczba); $return = 0; for($i=0;$i<strlen($temp);$i++){ if($temp[$i] == '1') $return++; } return $return; } echo ileJedynekWBin(7); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HZado
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'ilejedynekwbin'
          1        SEND_VAL                                                 7
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   14     4      > RETURN                                                   1

Function ilejedynekwbin:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
Branch analysis from position: 13
filename:       /in/HZado
function name:  ileJedynekWBin
number of ops:  19
compiled vars:  !0 = $liczba, !1 = $temp, !2 = $return, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'decbin'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        CAST                                          6  ~5      $4
          5        ASSIGN                                                   !1, ~5
    5     6        ASSIGN                                                   !2, 0
    6     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->14
    7     9    >   FETCH_DIM_R                                      ~9      !1, !3
         10        IS_EQUAL                                                 ~9, '1'
         11      > JMPZ                                                     ~10, ->13
    8    12    >   PRE_INC                                                  !2
    6    13    >   PRE_INC                                                  !3
         14    >   STRLEN                                           ~13     !1
         15        IS_SMALLER                                               !3, ~13
         16      > JMPNZ                                                    ~14, ->9
   10    17    > > RETURN                                                   !2
   11    18*     > RETURN                                                   null

End of function ilejedynekwbin

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1390 KiB | 16 Q