3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_timestamp ($time = NULL) { echo date ('Y-M-d H:m:s', $time), "\n"; } get_timestamp (); get_timestamp (time()); get_timestamp (NULL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjqLb
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'get_timestamp'
          1        DO_FCALL                                      0          
   11     2        INIT_FCALL                                               'get_timestamp'
          3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_FCALL                                      0          
   12     7        INIT_FCALL                                               'get_timestamp'
          8        SEND_VAL                                                 null
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function get_timestamp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjqLb
function name:  get_timestamp
number of ops:  8
compiled vars:  !0 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    6     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-M-d+H%3Am%3As'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
          6        ECHO                                                     '%0A'
    8     7      > RETURN                                                   null

End of function get_timestamp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.97 ms | 1397 KiB | 20 Q