3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.24 ms | 1389 KiB | 16 Q