3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getTimestamp() { return date("dmyHis").substr((string)microtime(), 1, 8); } echo getTimestamp();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kFXTs
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'gettimestamp'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function gettimestamp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kFXTs
function name:  getTimestamp
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'dmyHis'
          2        DO_ICALL                                         $0      
          3        INIT_FCALL                                               'substr'
          4        INIT_FCALL                                               'microtime'
          5        DO_ICALL                                         $1      
          6        CAST                                          6  ~2      $1
          7        SEND_VAL                                                 ~2
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 8
         10        DO_ICALL                                         $3      
         11        CONCAT                                           ~4      $0, $3
         12      > RETURN                                                   ~4
    5    13*     > RETURN                                                   null

End of function gettimestamp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.28 ms | 1389 KiB | 20 Q