3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale('fi_FI'); $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/T3qBg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $v, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 'fi_FI'
          2        DO_ICALL                                                 
          3        ASSIGN                                                   !0, 0.1
          4        INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 259
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
          9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1394 KiB | 19 Q