3v4l.org

run code in 500+ 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:  17
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_ARRAY                                           ~5      !0
          3        ADD_ARRAY_ELEMENT                                    ~5      !1
          4        FRAMELESS_ICALL_2                implode             ~6      '__', ~5
          5        ASSIGN                                                       !2, ~6
    5     6        INIT_FCALL                                                   'base64_encode'
          7        INIT_FCALL                                                   'hash'
          8        SEND_VAL                                                     'sha256'
          9        SEND_VAR                                                     !2
         10        SEND_VAL                                                     <true>
         11        DO_ICALL                                             $8      
         12        SEND_VAR                                                     $8
         13        DO_ICALL                                             $9      
         14        FRAMELESS_ICALL_2                strtr               ~10     $9, <array>
         15        ECHO                                                         ~10
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
1179.18 ms | 1766 KiB | 15 Q