3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Prints the day, date, month, year, time, AM or PM echo date("D, j F Y h:i:s") . "<br>"; // Print the array from getdate() print_r(getdate()); echo "<br><br>"; // Return date/time info of a timestamp; then format the output $mydate=getdate(date("U")); echo "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SjpSB
function name:  (null)
number of ops:  31
compiled vars:  !0 = $mydate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'D%2C+j+F+Y+h%3Ai%3As'
          2        DO_ICALL                                         $1      
          3        CONCAT                                           ~2      $1, '%3Cbr%3E'
          4        ECHO                                                     ~2
    6     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'getdate'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    7    10        ECHO                                                     '%3Cbr%3E%3Cbr%3E'
   10    11        INIT_FCALL                                               'getdate'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'U'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        ASSIGN                                                   !0, $6
   11    18        FETCH_DIM_R                                      ~8      !0, 'weekday'
         19        ROPE_INIT                                     7  ~13     ~8
         20        ROPE_ADD                                      1  ~13     ~13, '%2C+'
         21        FETCH_DIM_R                                      ~9      !0, 'month'
         22        ROPE_ADD                                      2  ~13     ~13, ~9
         23        ROPE_ADD                                      3  ~13     ~13, '+'
         24        FETCH_DIM_R                                      ~10     !0, 'mday'
         25        ROPE_ADD                                      4  ~13     ~13, ~10
         26        ROPE_ADD                                      5  ~13     ~13, '%2C+'
         27        FETCH_DIM_R                                      ~11     !0, 'year'
         28        ROPE_END                                      6  ~12     ~13, ~11
         29        ECHO                                                     ~12
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.01 ms | 1387 KiB | 19 Q