3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decode_code($code){ return preg_replace_callback( "@\\\(x)?([0-9a-f]{2,3})@", function($m){ return chr($m[1]?hexdec($m[2]):octdec($m[2])); }, $code ); } echo decode_code("\x62\x61\x73\x65\x36\x34\x5f\x64\x65\x63\x6f\x64\x65"); echo decode_code("\x67\x7a\x69\x6e\x66\x6c\x61\x74\x65"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbufM
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'decode_code'
          1        SEND_VAL                                                 'base64_decode'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   14     4        INIT_FCALL                                               'decode_code'
          5        SEND_VAL                                                 'gzinflate'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
   15     8      > RETURN                                                   1

Function decode_code:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbufM
function name:  decode_code
number of ops:  9
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace_callback'
    5     2        SEND_VAL                                                 '%40%5C%5C%28x%29%3F%28%5B0-9a-f%5D%7B2%2C3%7D%29%40'
    6     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCbufM%3A6%240'
    8     4        SEND_VAL                                                 ~1
    9     5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
   11     8*     > RETURN                                                   null

End of function decode_code

Function %00%7Bclosure%7D%2Fin%2FCbufM%3A6%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbufM
function name:  {closure}
number of ops:  19
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'chr'
          2        FETCH_DIM_R                                      ~1      !0, 1
          3      > JMPZ                                                     ~1, ->10
          4    >   INIT_FCALL                                               'hexdec'
          5        FETCH_DIM_R                                      ~2      !0, 2
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        QM_ASSIGN                                        ~4      $3
          9      > JMP                                                      ->15
         10    >   INIT_FCALL                                               'octdec'
         11        FETCH_DIM_R                                      ~5      !0, 2
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        QM_ASSIGN                                        ~4      $6
         15    >   SEND_VAL                                                 ~4
         16        DO_ICALL                                         $7      
         17      > RETURN                                                   $7
    8    18*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FCbufM%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.13 ms | 1403 KiB | 23 Q