3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Using default precision:',PHP_EOL; $time = $_SERVER['REQUEST_TIME_FLOAT']; var_dump(ini_get('precision')); var_dump($time); $time_string = addslashes($time); var_dump($time_string); $recast_time = (float) $time_string; var_dump($recast_time); var_dump($time === $recast_time); echo PHP_EOL,'Using substantially higher precision:',PHP_EOL; ini_set('precision', 50); $time = $_SERVER['REQUEST_TIME_FLOAT']; var_dump(ini_get('precision')); var_dump($time); $time_string = addslashes($time); var_dump($time_string); $recast_time = (float) $time_string; var_dump($recast_time); var_dump($time === $recast_time);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3dEnW
function name:  (null)
number of ops:  66
compiled vars:  !0 = $time, !1 = $time_string, !2 = $recast_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'Using+default+precision%3A'
          1        ECHO                                                     '%0A'
    3     2        FETCH_R                      global              ~3      '_SERVER'
          3        FETCH_DIM_R                                      ~4      ~3, 'REQUEST_TIME_FLOAT'
          4        ASSIGN                                                   !0, ~4
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'ini_get'
          7        SEND_VAL                                                 'precision'
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'addslashes'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !1, $9
    7    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
    8    21        CAST                                          5  ~12     !1
         22        ASSIGN                                                   !2, ~12
    9    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
   11    26        INIT_FCALL                                               'var_dump'
         27        IS_IDENTICAL                                     ~15     !0, !2
         28        SEND_VAL                                                 ~15
         29        DO_ICALL                                                 
   13    30        ECHO                                                     '%0A'
         31        ECHO                                                     'Using+substantially+higher+precision%3A'
         32        ECHO                                                     '%0A'
   14    33        INIT_FCALL                                               'ini_set'
         34        SEND_VAL                                                 'precision'
         35        SEND_VAL                                                 50
         36        DO_ICALL                                                 
   16    37        FETCH_R                      global              ~18     '_SERVER'
         38        FETCH_DIM_R                                      ~19     ~18, 'REQUEST_TIME_FLOAT'
         39        ASSIGN                                                   !0, ~19
   17    40        INIT_FCALL                                               'var_dump'
         41        INIT_FCALL                                               'ini_get'
         42        SEND_VAL                                                 'precision'
         43        DO_ICALL                                         $21     
         44        SEND_VAR                                                 $21
         45        DO_ICALL                                                 
   18    46        INIT_FCALL                                               'var_dump'
         47        SEND_VAR                                                 !0
         48        DO_ICALL                                                 
   19    49        INIT_FCALL                                               'addslashes'
         50        SEND_VAR                                                 !0
         51        DO_ICALL                                         $24     
         52        ASSIGN                                                   !1, $24
   20    53        INIT_FCALL                                               'var_dump'
         54        SEND_VAR                                                 !1
         55        DO_ICALL                                                 
   21    56        CAST                                          5  ~27     !1
         57        ASSIGN                                                   !2, ~27
   22    58        INIT_FCALL                                               'var_dump'
         59        SEND_VAR                                                 !2
         60        DO_ICALL                                                 
   24    61        INIT_FCALL                                               'var_dump'
         62        IS_IDENTICAL                                     ~30     !0, !2
         63        SEND_VAL                                                 ~30
         64        DO_ICALL                                                 
         65      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.61 ms | 1467 KiB | 17 Q