3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "ACD0DSAS";//I expect this to be unpacked in one 8 byte number $higher = unpack("N", substr($value, 0, 4)); $lower = unpack("N", substr($value, 4, 4)); echo ($higher << 32) | $lower;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F78Vk
function name:  (null)
number of ops:  25
compiled vars:  !0 = $value, !1 = $higher, !2 = $lower
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ACD0DSAS'
    4     1        INIT_FCALL                                               'unpack'
          2        SEND_VAL                                                 'N'
          3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 4
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    5    11        INIT_FCALL                                               'unpack'
         12        SEND_VAL                                                 'N'
         13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 4
         16        SEND_VAL                                                 4
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                         $8      
         20        ASSIGN                                                   !2, $8
    6    21        SL                                               ~10     !1, 32
         22        BW_OR                                            ~11     !2, ~10
         23        ECHO                                                     ~11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.29 ms | 1386 KiB | 17 Q