3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = '12,5'; $temp = filter_var($number, FILTER_SANITZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_THOUSAND); var_dump($temp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0WCOV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $number, !1 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12%2C5'
    4     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        FETCH_CONSTANT                                   ~3      'FILTER_SANITZE_NUMBER_FLOAT'
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 8192
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.71 ms | 1398 KiB | 17 Q