3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = 4189.94; $int = round($original * 100); var_dump($int); //should be 418,994 ?? $double = $int / 100; // should be 4189.94 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/GhjUP
function name:  (null)
number of ops:  19
compiled vars:  !0 = $original, !1 = $int, !2 = $double
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 4189.94
    5     1        INIT_FCALL                                               'round'
          2        MUL                                              ~4      !0, 100
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    9     9        DIV                                              ~8      !1, 100
         10        ASSIGN                                                   !2, ~8
   11    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'var_dump'
         15        IS_EQUAL                                         ~11     !2, !0
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.97 ms | 1394 KiB | 17 Q