3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'Foo'; $hex16 = substr( hash( 'sha256', $string ), 0, 16 ); $hexhi = substr( $hex16, 0, 8 ); $hexlo = substr( $hex16, 8, 8 ); $int = hexdec( $hexlo ) | ( hexdec( $hexhi ) << 32 ); var_dump($int);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/54iU5
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $hex16, !2 = $hexhi, !3 = $hexlo, !4 = $int
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Foo'
    6     1        INIT_FCALL                                                   'hash'
          2        SEND_VAL                                                     'sha256'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $6      
    5     5        FRAMELESS_ICALL_3                substr              ~7      $6, 0
    8     6        OP_DATA                                                      16
    5     7        ASSIGN                                                       !1, ~7
   11     8        FRAMELESS_ICALL_3                substr              ~9      !1, 0
          9        OP_DATA                                                      8
         10        ASSIGN                                                       !2, ~9
   12    11        FRAMELESS_ICALL_3                substr              ~11     !1, 8
         12        OP_DATA                                                      8
         13        ASSIGN                                                       !3, ~11
   14    14        INIT_FCALL                                                   'hexdec'
         15        SEND_VAR                                                     !3
         16        DO_ICALL                                             $13     
         17        INIT_FCALL                                                   'hexdec'
         18        SEND_VAR                                                     !2
         19        DO_ICALL                                             $14     
         20        SL                                                   ~15     $14, 32
         21        BW_OR                                                ~16     $13, ~15
         22        ASSIGN                                                       !4, ~16
   15    23        INIT_FCALL                                                   'var_dump'
         24        SEND_VAR                                                     !4
         25        DO_ICALL                                                     
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
245.65 ms | 2925 KiB | 16 Q