3v4l.org

run code in 500+ PHP versions simultaneously
<?php $n = 50.853; $whole = intval($n); $fraction = $n * 100 % 100; var_dump($whole); var_dump($fraction);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/An9gO
function name:  (null)
number of ops:  13
compiled vars:  !0 = $n, !1 = $whole, !2 = $fraction
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 50.853
    4     1        CAST                                              4  ~4      !0
          2        ASSIGN                                                       !1, ~4
    5     3        MUL                                                  ~6      !0, 100
          4        MOD                                                  ~7      ~6, 100
          5        ASSIGN                                                       !2, ~7
    7     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
    8     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.52 ms | 2006 KiB | 14 Q