3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 15; $packed = pack('h*', dechex(15)); $v = unpack('h*', $packed); $v = hexdec($v[1]); var_dump($packed); var_dump($number); var_dump($v);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/2WI1f
function name:  (null)
number of ops:  29
compiled vars:  !0 = $number, !1 = $packed, !2 = $v
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 15
   3     1        INIT_FCALL                                               'pack'
         2        SEND_VAL                                                 'h%2A'
         3        INIT_FCALL                                               'dechex'
         4        SEND_VAL                                                 15
         5        DO_ICALL                                         $4      
         6        SEND_VAR                                                 $4
         7        DO_ICALL                                         $5      
         8        ASSIGN                                                   !1, $5
   4     9        INIT_FCALL                                               'unpack'
        10        SEND_VAL                                                 'h%2A'
        11        SEND_VAR                                                 !1
        12        DO_ICALL                                         $7      
        13        ASSIGN                                                   !2, $7
   5    14        INIT_FCALL                                               'hexdec'
        15        FETCH_DIM_R                                      $9      !2, 1
        16        SEND_VAR                                                 $9
        17        DO_ICALL                                         $10     
        18        ASSIGN                                                   !2, $10
   6    19        INIT_FCALL                                               'var_dump'
        20        SEND_VAR                                                 !1
        21        DO_ICALL                                                 
   7    22        INIT_FCALL                                               'var_dump'
        23        SEND_VAR                                                 !0
        24        DO_ICALL                                                 
   8    25        INIT_FCALL                                               'var_dump'
        26        SEND_VAR                                                 !2
        27        DO_ICALL                                                 
        28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0