3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 10/1.0; if (is_double($value) && fmod($value, 1.0) !== 0.0) { $value = (int) $value; } echo fmod($value, 1.0), var_export($value , true);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 9
filename:       /in/jvBvO
function name:  (null)
number of ops:  23
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        TYPE_CHECK                                   32  ~2      !0
          2      > JMPZ_EX                                          ~2      ~2, ->9
          3    >   INIT_FCALL                                               'fmod'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $3      
          7        IS_NOT_IDENTICAL                                 ~4      $3, 0
          8        BOOL                                             ~2      ~4
          9    > > JMPZ                                                     ~2, ->12
    4    10    >   CAST                                          4  ~5      !0
         11        ASSIGN                                                   !0, ~5
    7    12    >   INIT_FCALL                                               'fmod'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $7      
         16        ECHO                                                     $7
         17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $8      
         21        ECHO                                                     $8
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.05 ms | 1386 KiB | 17 Q