3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array(null, false, true, 1, "") as $invalid) { var_dump(filter_input_array(INPUT_POST, $invalid)); var_dump(filter_input(INPUT_POST, "test", $invalid)); var_dump(filter_var_array(array(), $invalid)); var_dump(filter_var(array(), $invalid)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 32
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 32
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/v2dIl
function name:  (null)
number of ops:  34
compiled vars:  !0 = $invalid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $1      <array>, ->32
          1    > > FE_FETCH_R                                               $1, !0, ->32
    4     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'filter_input_array'
          4        SEND_VAL                                                 0
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'filter_input'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 'test'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'filter_var_array'
         19        SEND_VAL                                                 <array>
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
    8    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'filter_var'
         26        SEND_VAL                                                 <array>
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $8      
         29        SEND_VAR                                                 $8
         30        DO_ICALL                                                 
    3    31      > JMP                                                      ->1
         32    >   FE_FREE                                                  $1
    9    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.73 ms | 1003 KiB | 18 Q