3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.79 ms | 1396 KiB | 19 Q