3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: text/plain charset=UTF-8;"); $in = array( 'meta_data' => 'querysucceful!', 'size' => 15, 'resultset'=> array( array( 'name' => 'resul_1', 'aaaa' => '1a', 'bbbb' => '1b' ), array( 'name' => 'result_2', 'aaaa' => '2a', 'bbbb' => '2b' ), array( 'name' => 'result_3', 'aaaa' => '3a', 'bbbb' => '3b' ) ) ); $filter = array( 'meta_data' => FILTER_SANITIZE_STRING, 'size' => FILTER_SANITIZE_NUMBER_INT, 'resultset' => array('filter' => FILTER_CALLBACK, 'options' => 'filter_result') ); $out = filter_var_array($in, $filter); var_dump($out); function filter_result($result) { var_dump($result); return null; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K4Ln1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $in, !1 = $filter, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+text%2Fplain+charset%3DUTF-8%3B'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
   29     4        ASSIGN                                                   !1, <array>
   35     5        INIT_FCALL                                               'filter_var_array'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
   37    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   47    13      > RETURN                                                   1

Function filter_result:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K4Ln1
function name:  filter_result
number of ops:  6
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV                                             !0      
   45     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   46     4      > RETURN                                                   null
   47     5*     > RETURN                                                   null

End of function filter_result

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1395 KiB | 19 Q