3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( filter_var((string) null, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE), filter_var('', FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MmfGH
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'filter_var'
          2        CAST                                          6  ~0      null
          3        SEND_VAL                                                 ~0
          4        SEND_VAL                                                 258
          5        SEND_VAL                                                 134217728
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
    5     8        INIT_FCALL                                               'filter_var'
          9        SEND_VAL                                                 ''
         10        SEND_VAL                                                 258
         11        SEND_VAL                                                 134217728
         12        DO_ICALL                                         $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                                 
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.59 ms | 1398 KiB | 17 Q