3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("America/New_York"); $xx = new DateTime(); $x = $xx->format('W'); $now = new DateTime('Sunday of week ' . $x); $y = $now->format('D'); echo $y;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pn7v7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $xx, !1 = $x, !2 = $now, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FNew_York'
          2        DO_ICALL                                                 
    4     3        NEW                                              $5      'DateTime'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $5
    5     6        INIT_METHOD_CALL                                         !0, 'format'
          7        SEND_VAL_EX                                              'W'
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !1, $8
    6    10        NEW                                              $10     'DateTime'
         11        CONCAT                                           ~11     'Sunday+of+week+', !1
         12        SEND_VAL_EX                                              ~11
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $10
    7    15        INIT_METHOD_CALL                                         !2, 'format'
         16        SEND_VAL_EX                                              'D'
         17        DO_FCALL                                      0  $14     
         18        ASSIGN                                                   !3, $14
    8    19        ECHO                                                     !3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.89 ms | 1395 KiB | 15 Q