3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.11 ms | 1385 KiB | 17 Q