3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __int32($numeric_value){ $x = (float)$numeric_value; $y = pow(2,32); if ($x > $y) { $x = pow(2,31)-1; } elseif ($x >= pow(2,31)) { $x -= $y; } return (int)$x; } function crc32int($string) { return __int32(hexdec(hash("crc32b", $string))); } echo crc32int('http://staging.megafon.ru/ext/');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eVkCm
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'crc32int'
          1        SEND_VAL                                                 'http%3A%2F%2Fstaging.megafon.ru%2Fext%2F'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function __int32:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/eVkCm
function name:  __int32
number of ops:  27
compiled vars:  !0 = $numeric_value, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        CAST                                          5  ~3      !0
          2        ASSIGN                                                   !1, ~3
    5     3        INIT_FCALL                                               'pow'
          4        SEND_VAL                                                 2
          5        SEND_VAL                                                 32
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    7     8        IS_SMALLER                                               !2, !1
          9      > JMPZ                                                     ~7, ->17
    8    10    >   INIT_FCALL                                               'pow'
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 31
         13        DO_ICALL                                         $8      
         14        SUB                                              ~9      $8, 1
         15        ASSIGN                                                   !1, ~9
         16      > JMP                                                      ->24
    9    17    >   INIT_FCALL                                               'pow'
         18        SEND_VAL                                                 2
         19        SEND_VAL                                                 31
         20        DO_ICALL                                         $11     
         21        IS_SMALLER_OR_EQUAL                                      $11, !1
         22      > JMPZ                                                     ~12, ->24
   10    23    >   ASSIGN_OP                                     2          !1, !2
   13    24    >   CAST                                          4  ~14     !1
         25      > RETURN                                                   ~14
   14    26*     > RETURN                                                   null

End of function __int32

Function crc32int:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eVkCm
function name:  crc32int
number of ops:  13
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        INIT_FCALL                                               '__int32'
          2        INIT_FCALL                                               'hexdec'
          3        INIT_FCALL                                               'hash'
          4        SEND_VAL                                                 'crc32b'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_FCALL                                      0  $3      
         11      > RETURN                                                   $3
   18    12*     > RETURN                                                   null

End of function crc32int

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.61 ms | 1394 KiB | 21 Q