3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_EOL')) { define('PHP_EOL', "\r\n"); } $original = "YWlFLVEZZUFNaWlhPQ01ZT0lLWU5HTFJQVFNCRUJZVA="; $raw_data = base64_decode($original); print 'Raw key length (used to encode/decode)' . PHP_EOL; print strlen($raw_data) . PHP_EOL; print PHP_EOL; print 'Raw key in hexidecimal format (0-9 a-f)' . PHP_EOL; $hex_key = bin2hex($raw_data); print $hex_key . PHP_EOL; print PHP_EOL; print 'Hexidecimal key length' . PHP_EOL; print strlen($hex_key) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/QFgK5
function name:  (null)
number of ops:  28
compiled vars:  !0 = $original, !1 = $raw_data, !2 = $hex_key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <false>, ->5
    4     1    >   INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'PHP_EOL'
          3        SEND_VAL                                                 '%0D%0A'
          4        DO_ICALL                                                 
    8     5    >   ASSIGN                                                   !0, 'YWlFLVEZZUFNaWlhPQ01ZT0lLWU5HTFJQVFNCRUJZVA%3D'
    9     6        INIT_FCALL                                               'base64_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
   11    10        ECHO                                                     'Raw+key+length+%28used+to+encode%2Fdecode%29%0A'
   12    11        STRLEN                                           ~7      !1
         12        CONCAT                                           ~8      ~7, '%0A'
         13        ECHO                                                     ~8
   14    14        ECHO                                                     '%0A'
   16    15        ECHO                                                     'Raw+key+in+hexidecimal+format+%280-9+a-f%29%0A'
   17    16        INIT_FCALL                                               'bin2hex'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !2, $9
   18    20        CONCAT                                           ~11     !2, '%0A'
         21        ECHO                                                     ~11
   20    22        ECHO                                                     '%0A'
   22    23        ECHO                                                     'Hexidecimal+key+length%0A'
   23    24        STRLEN                                           ~12     !2
         25        CONCAT                                           ~13     ~12, '%0A'
         26        ECHO                                                     ~13
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.6 ms | 1387 KiB | 19 Q