3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(1599828571.23561241); var_dump(DateTimeImmutable::createFromTimestamp(1599828571.23561241)->format('U.u')); echo number_format(1599828571.23561241, 6, '.', '') . "\n"; echo round(1599828571.23561241, 6);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tgRMc
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 1.59983e+9
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromTimestamp'
          5        SEND_VAL_EX                                              1.59983e+9
          6        DO_FCALL                                      0  $1      
          7        INIT_METHOD_CALL                                         $1, 'format'
          8        SEND_VAL_EX                                              'U.u'
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'number_format'
         13        SEND_VAL                                                 1.59983e+9
         14        SEND_VAL                                                 6
         15        SEND_VAL                                                 '.'
         16        SEND_VAL                                                 ''
         17        DO_ICALL                                         $4      
         18        CONCAT                                           ~5      $4, '%0A'
         19        ECHO                                                     ~5
    6    20        INIT_FCALL                                               'round'
         21        SEND_VAL                                                 1.59983e+9
         22        SEND_VAL                                                 6
         23        DO_ICALL                                         $6      
         24        ECHO                                                     $6
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.45 ms | 1001 KiB | 16 Q