3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('first Monday of this month'); $dt2 = new DateTime('first Sunday of this month'); echo $dt->format('d M'); echo $dt2->format('d M');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8Jsk
function name:  (null)
number of ops:  17
compiled vars:  !0 = $dt, !1 = $dt2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'first+Monday+of+this+month'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              'first+Sunday+of+this+month'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'd+M'
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
    7    12        INIT_METHOD_CALL                                         !1, 'format'
         13        SEND_VAL_EX                                              'd+M'
         14        DO_FCALL                                      0  $9      
         15        ECHO                                                     $9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1397 KiB | 14 Q