3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xor = function ($str, $key = 1) { for ($i = 0; $i < strlen($str); $i++) { $str[$i] = chr(ord($str[$i]) ^ $key); } return $str; }; $enc = $xor("https://link.abaykan.com"); $dec = $xor($enc); var_dump($enc); var_dump($dec); $mangleed = $mangle(str_split('https://link.abaykan.com')); $unmangleed = $mangle($mangleed); print_r($unmangleed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/grn9k
function name:  (null)
number of ops:  31
compiled vars:  !0 = $xor, !1 = $enc, !2 = $dec, !3 = $mangleed, !4 = $mangle, !5 = $unmangleed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fgrn9k%3A2%240'
          1        ASSIGN                                                   !0, ~6
    9     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              'https%3A%2F%2Flink.abaykan.com'
          4        DO_FCALL                                      0  $8      
          5        ASSIGN                                                   !1, $8
   11     6        INIT_DYNAMIC_CALL                                        !0
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $10     
          9        ASSIGN                                                   !2, $10
   13    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   14    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
   16    16        INIT_DYNAMIC_CALL                                        !4
         17        INIT_FCALL                                               'str_split'
         18        SEND_VAL                                                 'https%3A%2F%2Flink.abaykan.com'
         19        DO_ICALL                                         $14     
         20        SEND_VAR_NO_REF_EX                                       $14
         21        DO_FCALL                                      0  $15     
         22        ASSIGN                                                   !3, $15
   18    23        INIT_DYNAMIC_CALL                                        !4
         24        SEND_VAR_EX                                              !3
         25        DO_FCALL                                      0  $17     
         26        ASSIGN                                                   !5, $17
   21    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !5
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fgrn9k%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
filename:       /in/grn9k
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $str, !1 = $key, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      1
    3     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->15
    4     4    >   INIT_FCALL                                               'chr'
          5        INIT_FCALL                                               'ord'
          6        FETCH_DIM_R                                      ~5      !0, !2
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        BW_XOR                                           ~7      !1, $6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN_DIM                                               !0, !2
         13        OP_DATA                                                  $8
    3    14        PRE_INC                                                  !2
         15    >   STRLEN                                           ~10     !0
         16        IS_SMALLER                                               !2, ~10
         17      > JMPNZ                                                    ~11, ->4
    6    18    > > RETURN                                                   !0
    7    19*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fgrn9k%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.81 ms | 1400 KiB | 23 Q