3v4l.org

run code in 300+ PHP versions simultaneously
<?php $float = 500.10; var_dump(gettype($float), $float, gettype($float) == 'float', (float) $float, // Cast to float (int) $float); // Cast to integer
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DbAlc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $float
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 500.1
    5     1        INIT_FCALL                                               'var_dump'
          2        GET_TYPE                                         ~2      !0
          3        SEND_VAL                                                 ~2
    6     4        SEND_VAR                                                 !0
    7     5        GET_TYPE                                         ~3      !0
          6        IS_EQUAL                                         ~4      ~3, 'float'
          7        SEND_VAL                                                 ~4
    8     8        CAST                                          5  ~5      !0
          9        SEND_VAL                                                 ~5
    9    10        CAST                                          4  ~6      !0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.43 ms | 1385 KiB | 15 Q