3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); /* data actually came from POST */ $_POST = array( 'product_id' => 'libgd<script>', 'component' => '10', 'versions' => '2.0.33', 'testarray' => array('2', '23', '10', '12'), 'testscalar' => '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/8qjcU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $args, !1 = $myinputs
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        FETCH_CONSTANT                                       ~2      'E_STRICT'
          2        BW_OR                                                ~3      ~2, 30719
          3        SEND_VAL                                                     ~3
          4        DO_ICALL                                                     
    5     5        FETCH_W                          global              $5      '_POST'
          6        ASSIGN                                                       $5, <array>
   14     7        ASSIGN                                                       !0, <array>
   33     8        INIT_FCALL                                                   'filter_input_array'
          9        SEND_VAL                                                     0
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                             $8      
         12        ASSIGN                                                       !1, $8
   35    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                                     
   36    16        ECHO                                                         '%0A'
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.08 ms | 2954 KiB | 16 Q