3v4l.org

run code in 300+ 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:  36
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'
    5     1        INIT_FCALL                                               'substr'
    6     2        INIT_FCALL                                               'hash'
          3        SEND_VAL                                                 'sha256'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
    7     7        SEND_VAL                                                 0
    8     8        SEND_VAL                                                 16
          9        DO_ICALL                                         $7      
    5    10        ASSIGN                                                   !1, $7
   11    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 8
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !2, $9
   12    17        INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 8
         20        SEND_VAL                                                 8
         21        DO_ICALL                                         $11     
         22        ASSIGN                                                   !3, $11
   14    23        INIT_FCALL                                               'hexdec'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                         $13     
         26        INIT_FCALL                                               'hexdec'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                         $14     
         29        SL                                               ~15     $14, 32
         30        BW_OR                                            ~16     $13, ~15
         31        ASSIGN                                                   !4, ~16
   15    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.73 ms | 1396 KiB | 21 Q