3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST[1] = 'lolol'; $_POST[2] = '1l1l1l'; $_POST[3] = '<p><p>'; $_POST[4] = '*.*""'; function protect(){ addslashes($_POST); array_map("strip_tags",$_POST); } return $_POST;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Co2cD
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $0      '_POST'
          1        ASSIGN_DIM                                               $0, 1
          2        OP_DATA                                                  'lolol'
    4     3        FETCH_W                      global              $2      '_POST'
          4        ASSIGN_DIM                                               $2, 2
          5        OP_DATA                                                  '1l1l1l'
    5     6        FETCH_W                      global              $4      '_POST'
          7        ASSIGN_DIM                                               $4, 3
          8        OP_DATA                                                  '%3Cp%3E%3Cp%3E'
    6     9        FETCH_W                      global              $6      '_POST'
         10        ASSIGN_DIM                                               $6, 4
         11        OP_DATA                                                  '%2A.%2A%22%22'
   12    12        FETCH_R                      global              ~8      '_POST'
         13      > RETURN                                                   ~8
         14*     > RETURN                                                   1

Function protect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Co2cD
function name:  protect
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'addslashes'
          1        FETCH_R                      global              ~0      '_POST'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'strip_tags'
          6        FETCH_R                      global              ~2      '_POST'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   null

End of function protect

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.92 ms | 1395 KiB | 17 Q