3v4l.org

run code in 300+ PHP versions simultaneously
<?php function md5_base64( $data ) { return preg_replace('/=+$/','',base64_encode(pack('H*',md5($data)))); } echo md5_base64('aaa');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6seem
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'md5_base64'
          1        SEND_VAL                                                 'aaa'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function md5_base64:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6seem
function name:  md5_base64
number of ops:  18
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%3D%2B%24%2F'
          3        SEND_VAL                                                 ''
          4        INIT_FCALL                                               'base64_encode'
          5        INIT_FCALL                                               'pack'
          6        SEND_VAL                                                 'H%2A'
          7        INIT_FCALL                                               'md5'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16      > RETURN                                                   $4
    5    17*     > RETURN                                                   null

End of function md5_base64

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.75 ms | 1398 KiB | 22 Q