3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. 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 7.2.0