3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.99 ms | 1394 KiB | 15 Q