3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.76 ms | 1392 KiB | 13 Q