3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1394 KiB | 15 Q