3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.21 ms | 1394 KiB | 15 Q