3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((float) '1613938511.017448'); // float(1613938511.0174) var_dump((float) '1613938511.023691'); // float(1613938511.0237) var_dump((float) '1613938511.018045'); // float(1613938511.018) var_dump((float) '1613938511.018045' == 1613938511.018045 ); // true var_dump((float) '1613938511.018045' == 1613938511.0180 ); // false var_dump((float) '1613938511.018045' === 1613938511.018045 ); // true var_dump((float) '1613938511.018045' === 1613938511.0180 ); // false var_dump(json_encode((float) '1613938511.018045') ); // "1613938511.018045" $f = (float) '1613938511.018045'; // "1613938511.018045" var_dump($f); print_r($f); var_dump(json_encode($f)); // "1613938511.018045"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0EN3
function name:  (null)
number of ops:  54
compiled vars:  !0 = $f
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'var_dump'
         1        MAKE_REF                                         ~1      '1613938511.017448'
         2        SEND_VAL                                                 ~1
         3        DO_ICALL                                                 
   3     4        INIT_FCALL                                               'var_dump'
         5        MAKE_REF                                         ~3      '1613938511.023691'
         6        SEND_VAL                                                 ~3
         7        DO_ICALL                                                 
   4     8        INIT_FCALL                                               'var_dump'
         9        MAKE_REF                                         ~5      '1613938511.018045'
        10        SEND_VAL                                                 ~5
        11        DO_ICALL                                                 
   6    12        INIT_FCALL                                               'var_dump'
        13        MAKE_REF                                         ~7      '1613938511.018045'
        14        IS_NOT_EQUAL                                     ~8      ~7, 1.61394e+9
        15        SEND_VAL                                                 ~8
        16        DO_ICALL                                                 
   7    17        INIT_FCALL                                               'var_dump'
        18        MAKE_REF                                         ~10     '1613938511.018045'
        19        IS_NOT_EQUAL                                     ~11     ~10, 1.61394e+9
        20        SEND_VAL                                                 ~11
        21        DO_ICALL                                                 
   9    22        INIT_FCALL                                               'var_dump'
        23        MAKE_REF                                         ~13     '1613938511.018045'
        24        IS_NOT_IDENTICAL                                 ~14     ~13, 1.61394e+9
        25        SEND_VAL                                                 ~14
        26        DO_ICALL                                                 
  10    27        INIT_FCALL                                               'var_dump'
        28        MAKE_REF                                         ~16     '1613938511.018045'
        29        IS_NOT_IDENTICAL                                 ~17     ~16, 1.61394e+9
        30        SEND_VAL                                                 ~17
        31        DO_ICALL                                                 
  13    32        INIT_FCALL                                               'var_dump'
        33        INIT_FCALL                                               'json_encode'
        34        MAKE_REF                                         ~19     '1613938511.018045'
        35        SEND_VAL                                                 ~19
        36        DO_ICALL                                         $20     
        37        SEND_VAR                                                 $20
        38        DO_ICALL                                                 
  15    39        MAKE_REF                                         ~22     '1613938511.018045'
        40        ASSIGN                                                   !0, ~22
  16    41        INIT_FCALL                                               'var_dump'
        42        SEND_VAR                                                 !0
        43        DO_ICALL                                                 
  17    44        INIT_FCALL                                               'print_r'
        45        SEND_VAR                                                 !0
        46        DO_ICALL                                                 
  18    47        INIT_FCALL                                               'var_dump'
        48        INIT_FCALL                                               'json_encode'
        49        SEND_VAR                                                 !0
        50        DO_ICALL                                         $26     
        51        SEND_VAR                                                 $26
        52        DO_ICALL                                                 
        53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
15.06 ms | 467 KiB | 7 Q