3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userinput='href'; echo '<a href="mycgi?foo=', urlencode($userinput), '">'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o1LeB
function name:  (null)
number of ops:  8
compiled vars:  !0 = $userinput
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'href'
    3     1        ECHO                                                     '%3Ca+href%3D%22mycgi%3Ffoo%3D'
          2        INIT_FCALL                                               'urlencode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6        ECHO                                                     '%22%3E'
    4     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.87 ms | 1394 KiB | 15 Q