3v4l.org

run code in 300+ PHP versions simultaneously
<?php $float = 0.123456789; $string = "0.123456789"; $floatVal = floatval($string); var_dump( $float, $string, $floatVal );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cQMCj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $float, !1 = $string, !2 = $floatVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.123457
    4     1        ASSIGN                                                   !1, '0.123456789'
    5     2        CAST                                          5  ~5      !1
          3        ASSIGN                                                   !2, ~5
    6     4        INIT_FCALL                                               'var_dump'
    7     5        SEND_VAR                                                 !0
    8     6        SEND_VAR                                                 !1
    9     7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.7 ms | 1393 KiB | 15 Q