3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(filter_var( ['loadPlugins' => 'test'], FILTER_CALLBACK, [ 'options' => function ($value) { if (is_array($value) === true) { return $value; } else { return null; } }, 'flags' => FILTER_NULL_ON_FAILURE ] ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/76b0c
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'filter_var'
    4     2        SEND_VAL                                                 <array>
    5     3        SEND_VAL                                                 1024
    7     4        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
   13     5        INIT_ARRAY                                       ~1      ~0, 'options'
    7     6        ADD_ARRAY_ELEMENT                                ~1      134217728, 'flags'
          7        SEND_VAL                                                 ~1
    3     8        DO_ICALL                                         $2      
    7     9        SEND_VAR                                                 $2
    3    10        DO_ICALL                                                 
   17    11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/76b0c
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        TYPE_CHECK                                  128  ~1      !0
          2        TYPE_CHECK                                    8          ~1
          3      > JMPZ                                                     ~2, ->6
    9     4    > > RETURN                                                   !0
    8     5*       JMP                                                      ->7
   11     6    > > RETURN                                                   null
   13     7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.98 ms | 1446 KiB | 15 Q