3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 'x'; $bool = 'flase'; $string = 'false'; var_dump( filter_var($int, FILTER_VALIDATE_INT), filter_var($bool, FILTER_VALIDATE_BOOLEAN), filter_var($string, FILTER_VALIDATE_FLOAT), filter_var($string, FILTER_VALIDATE_URL), filter_var($string, FILTER_VALIDATE_IP), filter_var($int, FILTER_VALIDATE_INT, array('flags' => FILTER_NULL_ON_FAILURE)), filter_var($bool, FILTER_VALIDATE_BOOLEAN, array('flags' => FILTER_NULL_ON_FAILURE)), filter_var($string, FILTER_VALIDATE_FLOAT, array('flags' => FILTER_NULL_ON_FAILURE)), filter_var($string, FILTER_VALIDATE_URL, array('flags' => FILTER_NULL_ON_FAILURE)), filter_var($string, FILTER_VALIDATE_IP, array('flags' => FILTER_NULL_ON_FAILURE)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v7QZd
function name:  (null)
number of ops:  61
compiled vars:  !0 = $int, !1 = $bool, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'x'
    3     1        ASSIGN                                                   !1, 'flase'
    4     2        ASSIGN                                                   !2, 'false'
    5     3        INIT_FCALL                                               'var_dump'
    6     4        INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 257
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
    7     9        INIT_FCALL                                               'filter_var'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 258
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
    8    14        INIT_FCALL                                               'filter_var'
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 259
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
    9    19        INIT_FCALL                                               'filter_var'
         20        SEND_VAR                                                 !2
         21        SEND_VAL                                                 273
         22        DO_ICALL                                         $9      
         23        SEND_VAR                                                 $9
   10    24        INIT_FCALL                                               'filter_var'
         25        SEND_VAR                                                 !2
         26        SEND_VAL                                                 275
         27        DO_ICALL                                         $10     
         28        SEND_VAR                                                 $10
   11    29        INIT_FCALL                                               'filter_var'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 257
         32        SEND_VAL                                                 <array>
         33        DO_ICALL                                         $11     
         34        SEND_VAR                                                 $11
   12    35        INIT_FCALL                                               'filter_var'
         36        SEND_VAR                                                 !1
         37        SEND_VAL                                                 258
         38        SEND_VAL                                                 <array>
         39        DO_ICALL                                         $12     
         40        SEND_VAR                                                 $12
   13    41        INIT_FCALL                                               'filter_var'
         42        SEND_VAR                                                 !2
         43        SEND_VAL                                                 259
         44        SEND_VAL                                                 <array>
         45        DO_ICALL                                         $13     
         46        SEND_VAR                                                 $13
   14    47        INIT_FCALL                                               'filter_var'
         48        SEND_VAR                                                 !2
         49        SEND_VAL                                                 273
         50        SEND_VAL                                                 <array>
         51        DO_ICALL                                         $14     
         52        SEND_VAR                                                 $14
   15    53        INIT_FCALL                                               'filter_var'
         54        SEND_VAR                                                 !2
         55        SEND_VAL                                                 275
         56        SEND_VAL                                                 <array>
         57        DO_ICALL                                         $15     
         58        SEND_VAR                                                 $15
    5    59        DO_ICALL                                                 
   16    60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.4 ms | 1465 KiB | 15 Q