3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.38 ms | 1394 KiB | 17 Q