3v4l.org

run code in 300+ PHP versions simultaneously
<?php $good_input = array('num' => 42); $bad_input = array('num' => 'foo'); $spec = array('num' => FILTER_VALIDATE_INT); $filtered = filter_var_array($good_input, $spec); var_dump($filtered == $good_input); $filtered = filter_var_array($bad_input, $spec); var_dump($filtered == $bad_input);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlT49
function name:  (null)
number of ops:  22
compiled vars:  !0 = $good_input, !1 = $bad_input, !2 = $spec, !3 = $filtered
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'filter_var_array'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !3, $7
    7     8        INIT_FCALL                                               'var_dump'
          9        IS_EQUAL                                         ~9      !3, !0
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'filter_var_array'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !3, $11
    9    17        INIT_FCALL                                               'var_dump'
         18        IS_EQUAL                                         ~13     !3, !1
         19        SEND_VAL                                                 ~13
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.39 ms | 1445 KiB | 15 Q