3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(filter_var('true', VALIDATE_BOOLEAN)); var_dump(filter_var('false', VALIDATE_BOOLEAN)); var_dump(filter_var('0', VALIDATE_BOOLEAN)); var_dump(filter_var('1', VALIDATE_BOOLEAN));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QLDrp
function name:  (null)
number of ops:  33
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        FETCH_CONSTANT                                   ~0      'VALIDATE_BOOLEAN'
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    3     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'filter_var'
         10        SEND_VAL                                                 'false'
         11        FETCH_CONSTANT                                   ~3      'VALIDATE_BOOLEAN'
         12        SEND_VAL                                                 ~3
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
    4    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'filter_var'
         18        SEND_VAL                                                 '0'
         19        FETCH_CONSTANT                                   ~6      'VALIDATE_BOOLEAN'
         20        SEND_VAL                                                 ~6
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                                 
    5    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'filter_var'
         26        SEND_VAL                                                 '1'
         27        FETCH_CONSTANT                                   ~9      'VALIDATE_BOOLEAN'
         28        SEND_VAL                                                 ~9
         29        DO_ICALL                                         $10     
         30        SEND_VAR                                                 $10
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.51 ms | 1388 KiB | 17 Q