3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oDomingoPassado = new DateTime( date('Y-m-d', strtotime('last sunday of past week', time()) )); $oProximoDomingo = new DateTime( date('Y-m-d', strtotime('next Sunday', time()) )); print_r($oDomingoPassado); print_r($oProximoDomingo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5IDY
function name:  (null)
number of ops:  35
compiled vars:  !0 = $oDomingoPassado, !1 = $oProximoDomingo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'DateTime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'last+sunday+of+past+week'
          5        INIT_FCALL                                               'time'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        SEND_VAR_NO_REF_EX                                       $5
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !0, $2
    5    14        NEW                                              $8      'DateTime'
         15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 'next+Sunday'
         19        INIT_FCALL                                               'time'
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                         $10     
         23        SEND_VAR                                                 $10
         24        DO_ICALL                                         $11     
         25        SEND_VAR_NO_REF_EX                                       $11
         26        DO_FCALL                                      0          
         27        ASSIGN                                                   !1, $8
    7    28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
    8    31        INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.43 ms | 1396 KiB | 21 Q