3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(filter_var(true, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)); var_dump(filter_var(false, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)); var_dump(filter_var(2, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)); var_dump(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BA4an
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'filter_var'
          2        SEND_VAL                                                     <true>
          3        SEND_VAL                                                     258
          4        SEND_VAL                                                     134217728
          5        DO_ICALL                                             $0      
          6        SEND_VAR                                                     $0
          7        DO_ICALL                                                     
    3     8        INIT_FCALL                                                   'var_dump'
          9        INIT_FCALL                                                   'filter_var'
         10        SEND_VAL                                                     <false>
         11        SEND_VAL                                                     258
         12        SEND_VAL                                                     134217728
         13        DO_ICALL                                             $2      
         14        SEND_VAR                                                     $2
         15        DO_ICALL                                                     
    4    16        INIT_FCALL                                                   'var_dump'
         17        INIT_FCALL                                                   'filter_var'
         18        SEND_VAL                                                     2
         19        SEND_VAL                                                     258
         20        SEND_VAL                                                     134217728
         21        DO_ICALL                                             $4      
         22        SEND_VAR                                                     $4
         23        DO_ICALL                                                     
    5    24        INIT_FCALL                                                   'var_dump'
         25        SEND_VAL                                                     null
         26        DO_ICALL                                                     
         27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.5 ms | 2918 KiB | 15 Q