3v4l.org

run code in 300+ PHP versions simultaneously
<?php $floatVal = floatval(9722.22) * 100; $intVal = intval($floatVal); $int = (int) $floatVal; var_dump($floatVal); var_dump($intVal); var_dump($int);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EUOXZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $floatVal, !1 = $intVal, !2 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          5  ~3      9722.22
          1        MUL                                              ~4      ~3, 100
          2        ASSIGN                                                   !0, ~4
    3     3        CAST                                          4  ~6      !0
          4        ASSIGN                                                   !1, ~6
    4     5        CAST                                          4  ~8      !0
          6        ASSIGN                                                   !2, ~8
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.59 ms | 1394 KiB | 15 Q