<?php
$_POST = array(
'product_id' => 'libgd<script>',
'component' => '10',
'versions' => '2.0.33',
'testscalar' => array('2', '23', '10', '12'),
'testarray' => '2',
);
$args = array(
'product_id' => FILTER_SANITIZE_ENCODED,
'component' => array('filter' => FILTER_VALIDATE_INT,
'flags' => FILTER_REQUIRE_ARRAY,
'options' => array('min_range' => 1, 'max_range' => 10)
),
'versions' => FILTER_SANITIZE_ENCODED,
'doesnotexist' => FILTER_VALIDATE_INT,
'testscalar' => array(
'filter' => FILTER_VALIDATE_INT,
'flags' => FILTER_REQUIRE_SCALAR,
),
'testarray' => array(
'filter' => FILTER_VALIDATE_INT,
'flags' => FILTER_REQUIRE_ARRAY,
)
);
$myinputs = filter_input_array(INPUT_POST, $args);
var_dump($myinputs);
echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/aGBW5
function name: (null)
number of ops: 13
compiled vars: !0 = $args, !1 = $myinputs
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > FETCH_W global $2 '_POST'
1 ASSIGN $2, <array>
9 2 ASSIGN !0, <array>
28 3 INIT_FCALL 'filter_input_array'
4 SEND_VAL 0
5 SEND_VAR !0
6 DO_ICALL $5
7 ASSIGN !1, $5
30 8 INIT_FCALL 'var_dump'
9 SEND_VAR !1
10 DO_ICALL
31 11 ECHO '%0A'
12 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
158.56 ms | 1394 KiB | 17 Q