3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sign_imei($str) { // sha1_64bitInt $u = unpack('N2', sha1($str, true)); $u2 = ($u[1] << 32) | $u[2]; return $u2 & 0x7fffffffffffffff; } echo sign_imei('11122223333');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/knJNg
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'sign_imei'
          1        SEND_VAL                                                 '11122223333'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function sign_imei:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/knJNg
function name:  sign_imei
number of ops:  18
compiled vars:  !0 = $str, !1 = $u, !2 = $u2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'unpack'
          2        SEND_VAL                                                 'N2'
          3        INIT_FCALL                                               'sha1'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    5    10        FETCH_DIM_R                                      ~6      !1, 1
         11        SL                                               ~7      ~6, 32
         12        FETCH_DIM_R                                      ~8      !1, 2
         13        BW_OR                                            ~9      ~7, ~8
         14        ASSIGN                                                   !2, ~9
    6    15        BW_AND                                           ~11     !2, 9223372036854775807
         16      > RETURN                                                   ~11
    7    17*     > RETURN                                                   null

End of function sign_imei

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1402 KiB | 18 Q