3v4l.org

run code in 500+ PHP versions simultaneously
<?php function Wydajnosc($rejsy) { $rejsy = (int)$rejsy; if($rejsy) { return (0.125 * floor(log($rejsy, 2))) + 1; } else { return 1; } } echo Wydajnosc(250);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CM5mi
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'wydajnosc'
          1        SEND_VAL                                                 250
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function wydajnosc:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CM5mi
function name:  Wydajnosc
number of ops:  17
compiled vars:  !0 = $rejsy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        CAST                                          4  ~1      !0
          2        ASSIGN                                                   !0, ~1
    7     3      > JMPZ                                                     !0, ->15
    9     4    >   INIT_FCALL                                               'floor'
          5        INIT_FCALL                                               'log'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        MUL                                              ~5      $4, 0.125
         12        ADD                                              ~6      ~5, 1
         13      > RETURN                                                   ~6
    7    14*       JMP                                                      ->16
   13    15    > > RETURN                                                   1
   15    16*     > RETURN                                                   null

End of function wydajnosc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.53 ms | 2000 KiB | 14 Q