3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.16 ms | 1394 KiB | 17 Q