3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table = 'user_field_data'; $index = 'a_veeeery_veery_very_super_long_field_name__key'; $data = implode('__', [$table, $index]); echo strtr(base64_encode(hash('sha256', $data, TRUE)), ['+' => '_', '/' => '_', '=' => '']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2mNI
function name:  (null)
number of ops:  23
compiled vars:  !0 = $table, !1 = $index, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'user_field_data'
    3     1        ASSIGN                                                   !1, 'a_veeeery_veery_very_super_long_field_name__key'
    4     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '__'
          4        INIT_ARRAY                                       ~5      !0
          5        ADD_ARRAY_ELEMENT                                ~5      !1
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    5     9        INIT_FCALL                                               'strtr'
         10        INIT_FCALL                                               'base64_encode'
         11        INIT_FCALL                                               'hash'
         12        SEND_VAL                                                 'sha256'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        SEND_VAL                                                 <array>
         20        DO_ICALL                                         $10     
         21        ECHO                                                     $10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.9 ms | 1002 KiB | 17 Q