3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 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/vIHNa
function name:  (null)
number of ops:  26
compiled vars:  !0 = $mydate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'getdate'
          2        DO_ICALL                                         $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
    4     5        ECHO                                                     '%3Cbr%3E%3Cbr%3E'
    7     6        INIT_FCALL                                               'getdate'
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'U'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    8    13        FETCH_DIM_R                                      ~6      !0, 'weekday'
         14        ROPE_INIT                                     7  ~11     ~6
         15        ROPE_ADD                                      1  ~11     ~11, '%2C+'
         16        FETCH_DIM_R                                      ~7      !0, 'month'
         17        ROPE_ADD                                      2  ~11     ~11, ~7
         18        ROPE_ADD                                      3  ~11     ~11, '+'
         19        FETCH_DIM_R                                      ~8      !0, 'mday'
         20        ROPE_ADD                                      4  ~11     ~11, ~8
         21        ROPE_ADD                                      5  ~11     ~11, '%2C+'
         22        FETCH_DIM_R                                      ~9      !0, 'year'
         23        ROPE_END                                      6  ~10     ~11, ~9
         24        ECHO                                                     ~10
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.72 ms | 1395 KiB | 19 Q