3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int=1 ; echo strpos(log(($int^pow(2,ceil(log($int, 2)))-1)+1,2),'.');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I3HiW
function name:  (null)
number of ops:  25
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        INIT_FCALL                                               'strpos'
          2        INIT_FCALL                                               'log'
          3        INIT_FCALL                                               'pow'
          4        SEND_VAL                                                 2
          5        INIT_FCALL                                               'ceil'
          6        INIT_FCALL                                               'log'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                         $4      
         14        SUB                                              ~5      $4, 1
         15        BW_XOR                                           ~6      !0, ~5
         16        ADD                                              ~7      ~6, 1
         17        SEND_VAL                                                 ~7
         18        SEND_VAL                                                 2
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        SEND_VAL                                                 '.'
         22        DO_ICALL                                         $9      
         23        ECHO                                                     $9
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.45 ms | 1395 KiB | 21 Q