3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('precision', 30); $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/QQLeY
function name:  (null)
number of ops:  33
compiled vars:  !0 = $time, !1 = $time_string, !2 = $recast_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'precision'
          2        SEND_VAL                                                 30
          3        DO_ICALL                                                 
    5     4        FETCH_R                      global              ~4      '_SERVER'
          5        FETCH_DIM_R                                      ~5      ~4, 'REQUEST_TIME_FLOAT'
          6        ASSIGN                                                   !0, ~5
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'ini_get'
          9        SEND_VAL                                                 'precision'
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'addslashes'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $10     
         19        ASSIGN                                                   !1, $10
   10    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   11    23        CAST                                          5  ~13     !1
         24        ASSIGN                                                   !2, ~13
   12    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                                 
   14    28        INIT_FCALL                                               'var_dump'
         29        IS_IDENTICAL                                     ~16     !0, !2
         30        SEND_VAL                                                 ~16
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.94 ms | 1396 KiB | 21 Q