3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = date(); print_r(getdate(strtotime($d))); $rango = explode("-", $d); print_r($rango); echo (int) explode(":", trim($rango[0]))[0]; //echo date('w', strtotime($d->format('Y-m-d'))); //echo date("H:i:s", strtotime($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j39JE
function name:  (null)
number of ops:  32
compiled vars:  !0 = $d, !1 = $rango
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'print_r'
          4        INIT_FCALL                                               'getdate'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '-'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !1, $7
    6    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 '%3A'
         22        INIT_FCALL                                               'trim'
         23        FETCH_DIM_R                                      ~10     !1, 0
         24        SEND_VAL                                                 ~10
         25        DO_ICALL                                         $11     
         26        SEND_VAR                                                 $11
         27        DO_ICALL                                         $12     
         28        FETCH_DIM_R                                      ~13     $12, 0
         29        CAST                                          4  ~14     ~13
         30        ECHO                                                     ~14
   10    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.44 ms | 1399 KiB | 25 Q