3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'fi_FI.utf8', 'fi_FI.UTF-8'); $v = 0.1; $a = filter_var($v, FILTER_VALIDATE_FLOAT); var_dump($a); // dumps bool(false) ?
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQpZo
function name:  (null)
number of ops:  15
compiled vars:  !0 = $v, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'fi_FI.utf8'
          3        SEND_VAL                                                 'fi_FI.UTF-8'
          4        DO_ICALL                                                 
          5        ASSIGN                                                   !0, 0.1
          6        INIT_FCALL                                               'filter_var'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 259
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
         11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.46 ms | 1394 KiB | 19 Q