3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xx = new DateTime('2000-01-01', new DateTimeZone('America/New_York')); $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/L0Ptm
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xx, !1 = $x, !2 = $now, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              '2000-01-01'
          2        NEW                                              $5      'DateTimeZone'
          3        SEND_VAL_EX                                              'America%2FNew_York'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $5
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $4
    4     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'W'
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !1, $9
    5    12        NEW                                              $11     'DateTime'
         13        CONCAT                                           ~12     'Sunday+of+week+', !1
         14        SEND_VAL_EX                                              ~12
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !2, $11
    6    17        INIT_METHOD_CALL                                         !2, 'format'
         18        SEND_VAL_EX                                              'D'
         19        DO_FCALL                                      0  $15     
         20        ASSIGN                                                   !3, $15
    7    21        ECHO                                                     !3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.01 ms | 1394 KiB | 13 Q