3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo urlencode('test+12'); echo PHP_EOL; echo urldecode(urlencode('test+12')); echo PHP_EOL; echo urldecode('test%B12');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ll5BY
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 'test%2B12'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    4     4        ECHO                                                     '%0A'
    6     5        INIT_FCALL                                               'urldecode'
          6        INIT_FCALL                                               'urlencode'
          7        SEND_VAL                                                 'test%2B12'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                         $2      
         11        ECHO                                                     $2
    8    12        ECHO                                                     '%0A'
   10    13        INIT_FCALL                                               'urldecode'
         14        SEND_VAL                                                 'test%25B12'
         15        DO_ICALL                                         $3      
         16        ECHO                                                     $3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.64 ms | 1386 KiB | 17 Q