3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['q'] = '\'; drop table `user`'; echo strtolower(htmlentities(urlencode(mysql_real_escape_string($_GET['q'])))); echo filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rBMQQ
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $0      '_GET'
          1        ASSIGN_DIM                                               $0, 'q'
          2        OP_DATA                                                  '%27%3B+drop+table+%60user%60'
    4     3        INIT_FCALL                                               'strtolower'
          4        INIT_FCALL                                               'htmlentities'
          5        INIT_FCALL                                               'urlencode'
          6        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          7        CHECK_FUNC_ARG                                           
          8        FETCH_FUNC_ARG               global              $2      '_GET'
          9        FETCH_DIM_FUNC_ARG                               $3      $2, 'q'
         10        SEND_FUNC_ARG                                            $3
         11        DO_FCALL                                      0  $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
    6    19        INIT_FCALL                                               'filter_input'
         20        SEND_VAL                                                 1
         21        SEND_VAL                                                 'q'
         22        SEND_VAL                                                 513
         23        DO_ICALL                                         $8      
         24        ECHO                                                     $8
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.41 ms | 1395 KiB | 21 Q