3v4l.org

run code in 300+ PHP versions simultaneously
<?php function truc($source){ $strlen = strlen($source); $bin=''; for($i=0;$i<$strlen;$i=$i+2){ $bin .= chr(hexdec(substr($source,$i,2))); } return $bin; } $app_secret = "257041d0215ab7db7b3f708eb4e7a443"; $encrypted_url ='15a4949e01d827bb6cbad380e035ddc875b7bc1981773faa0b4e31ff2940147f57a093b0e1879d368b87989287a0053599b35f286217ae546b3733096d905966fc80bfa755d6019e841746f8892551abae7503653ef4da342cbbac7bafaff0c965a7b6f87b778e6dcb25073bcc54a4bda6cf2f1d1183713ee423ac46eef4b0448c9339c98f68ec2abbe826fb663117ca9d8cebdbcf3f2e6e72c9e004da866bc645d5778f0b19e97b379152a2bb178119b5b3612026bf7e92974c5aa84462edeefaae37ad9f5a80c33d68f18a11b7745ee36388cbbb50468ac3fc5fcd30474c034d0d10c2ae1c6a62cef1c4941f10f90e283c3e7a4851b5b37164810d98e8070989f80f512973b193b90df55459bf04e5'; $encrypted_url = truc($encrypted_url); $url = mcrypt_ecb(MCRYPT_RIJNDAEL_128,$app_secret,$encrypted_url,MCRYPT_DECRYPT); echo $url; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i0mhg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $app_secret, !1 = $encrypted_url, !2 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, '257041d0215ab7db7b3f708eb4e7a443'
   14     1        ASSIGN                                                   !1, '15a4949e01d827bb6cbad380e035ddc875b7bc1981773faa0b4e31ff2940147f57a093b0e1879d368b87989287a0053599b35f286217ae546b3733096d905966fc80bfa755d6019e841746f8892551abae7503653ef4da342cbbac7bafaff0c965a7b6f87b778e6dcb25073bcc54a4bda6cf2f1d1183713ee423ac46eef4b0448c9339c98f68ec2abbe826fb663117ca9d8cebdbcf3f2e6e72c9e004da866bc645d5778f0b19e97b379152a2bb178119b5b3612026bf7e92974c5aa84462edeefaae37ad9f5a80c33d68f18a11b7745ee36388cbbb50468ac3fc5fcd30474c034d0d10c2ae1c6a62cef1c4941f10f90e283c3e7a4851b5b37164810d98e8070989f80f512973b193b90df55459bf04e5'
   16     2        INIT_FCALL                                               'truc'
          3        SEND_VAR                                                 !1
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   17     6        INIT_FCALL_BY_NAME                                       'mcrypt_ecb'
          7        FETCH_CONSTANT                                   ~7      'MCRYPT_RIJNDAEL_128'
          8        SEND_VAL_EX                                              ~7
          9        SEND_VAR_EX                                              !0
         10        SEND_VAR_EX                                              !1
         11        FETCH_CONSTANT                                   ~8      'MCRYPT_DECRYPT'
         12        SEND_VAL_EX                                              ~8
         13        DO_FCALL                                      0  $9      
         14        ASSIGN                                                   !2, $9
   19    15        ECHO                                                     !2
   21    16      > RETURN                                                   1

Function truc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
Branch analysis from position: 6
filename:       /in/i0mhg
function name:  truc
number of ops:  24
compiled vars:  !0 = $source, !1 = $strlen, !2 = $bin, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        STRLEN                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    5     3        ASSIGN                                                   !2, ''
    6     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->20
    7     6    >   INIT_FCALL                                               'chr'
          7        INIT_FCALL                                               'hexdec'
          8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                         $10     
         17        ASSIGN_OP                                     8          !2, $10
    6    18        ADD                                              ~12     !3, 2
         19        ASSIGN                                                   !3, ~12
         20    >   IS_SMALLER                                               !3, !1
         21      > JMPNZ                                                    ~14, ->6
    9    22    > > RETURN                                                   !2
   10    23*     > RETURN                                                   null

End of function truc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.45 ms | 1402 KiB | 20 Q