3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var(1456165, FILTER_VALIDATE_FLOAT)); var_dump(filter_var('1456165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('.1456165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('0.1456165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('145.6165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('bolha', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('516.46.00', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('516.46.32', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('51646.00', FILTER_VALIDATE_FLOAT)); ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/4sIvK
function name:  (null)
number of ops:  64
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                                                 1456165
         3        SEND_VAL                                                 259
         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                                                 '1456165'
        10        SEND_VAL                                                 259
        11        DO_ICALL                                         $2      
        12        SEND_VAR                                                 $2
        13        DO_ICALL                                                 
   4    14        INIT_FCALL                                               'var_dump'
        15        INIT_FCALL                                               'filter_var'
        16        SEND_VAL                                                 '.1456165'
        17        SEND_VAL                                                 259
        18        DO_ICALL                                         $4      
        19        SEND_VAR                                                 $4
        20        DO_ICALL                                                 
   5    21        INIT_FCALL                                               'var_dump'
        22        INIT_FCALL                                               'filter_var'
        23        SEND_VAL                                                 '0.1456165'
        24        SEND_VAL                                                 259
        25        DO_ICALL                                         $6      
        26        SEND_VAR                                                 $6
        27        DO_ICALL                                                 
   6    28        INIT_FCALL                                               'var_dump'
        29        INIT_FCALL                                               'filter_var'
        30        SEND_VAL                                                 '145.6165'
        31        SEND_VAL                                                 259
        32        DO_ICALL                                         $8      
        33        SEND_VAR                                                 $8
        34        DO_ICALL                                                 
   8    35        INIT_FCALL                                               'var_dump'
        36        INIT_FCALL                                               'filter_var'
        37        SEND_VAL                                                 'bolha'
        38        SEND_VAL                                                 259
        39        DO_ICALL                                         $10     
        40        SEND_VAR                                                 $10
        41        DO_ICALL                                                 
   9    42        INIT_FCALL                                               'var_dump'
        43        INIT_FCALL                                               'filter_var'
        44        SEND_VAL                                                 '516.46.00'
        45        SEND_VAL                                                 259
        46        DO_ICALL                                         $12     
        47        SEND_VAR                                                 $12
        48        DO_ICALL                                                 
  10    49        INIT_FCALL                                               'var_dump'
        50        INIT_FCALL                                               'filter_var'
        51        SEND_VAL                                                 '516.46.32'
        52        SEND_VAL                                                 259
        53        DO_ICALL                                         $14     
        54        SEND_VAR                                                 $14
        55        DO_ICALL                                                 
  11    56        INIT_FCALL                                               'var_dump'
        57        INIT_FCALL                                               'filter_var'
        58        SEND_VAL                                                 '51646.00'
        59        SEND_VAL                                                 259
        60        DO_ICALL                                         $16     
        61        SEND_VAR                                                 $16
        62        DO_ICALL                                                 
        63      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0