3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = base64_encode('TRAV_PIDI_transferts_CRI.php?action=liste'); var_dump($a); $b = '_ABOCR*/%'; var_dump($b); $c = urldecode($b); var_dump('url', urldecode($b)); var_dump(urldecode(':/_&')); var_dump('basdec', base64_decode($c, true)); function base64UrlSafeEncode($binary) { return urlencode(base64_encode($binary)); } function base64UrlSafeDecode($string) { return base64_decode(urldecode($string)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J46ZX
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'base64_encode'
          1        SEND_VAL                                                 'TRAV_PIDI_transferts_CRI.php%3Faction%3Dliste'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    7     7        ASSIGN                                                   !1, '_ABOCR%2A%2F%25'
    9     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'urldecode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
   13    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAL                                                 'url'
         17        INIT_FCALL                                               'urldecode'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
   15    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'urldecode'
         24        SEND_VAL                                                 '%3A%2F_%26'
         25        DO_ICALL                                         $12     
         26        SEND_VAR                                                 $12
         27        DO_ICALL                                                 
   17    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAL                                                 'basdec'
         30        INIT_FCALL                                               'base64_decode'
         31        SEND_VAR                                                 !2
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $14     
         34        SEND_VAR                                                 $14
         35        DO_ICALL                                                 
   28    36      > RETURN                                                   1

Function base64urlsafeencode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J46ZX
function name:  base64UrlSafeEncode
number of ops:  9
compiled vars:  !0 = $binary
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        INIT_FCALL                                               'urlencode'
          2        INIT_FCALL                                               'base64_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
   22     8*     > RETURN                                                   null

End of function base64urlsafeencode

Function base64urlsafedecode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J46ZX
function name:  base64UrlSafeDecode
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   27     1        INIT_FCALL                                               'base64_decode'
          2        INIT_FCALL                                               'urldecode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
   28     8*     > RETURN                                                   null

End of function base64urlsafedecode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.74 ms | 1400 KiB | 23 Q