3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['search'] = "' onclick='alert(1337)"; ?> <input name=search value='<?= htmlspecialchars($_GET['search']); ?>'>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NYk0e
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $0      '_GET'
          1        ASSIGN_DIM                                               $0, 'search'
          2        OP_DATA                                                  '%27+onclick%3D%27alert%281337%29'
    4     3        ECHO                                                     '%3Cinput+name%3Dsearch+value%3D%27'
          4        INIT_FCALL                                               'htmlspecialchars'
          5        FETCH_R                      global              ~2      '_GET'
          6        FETCH_DIM_R                                      ~3      ~2, 'search'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
         10        ECHO                                                     '%27%3E'
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.51 ms | 1394 KiB | 15 Q