3v4l.org

run code in 500+ PHP versions simultaneously
<?php $month_start = new DateTime("first day of this month"); echo $month_start->format('Y-m-d H:i:s') . "\n"; $month_start = new DateTime("first day of March"); echo $month_start->format('Y-m-d H:i:s') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lG3GL
function name:  (null)
number of ops:  19
compiled vars:  !0 = $month_start
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   NEW                                                  $1      'DateTime'
          1        SEND_VAL_EX                                                  'first+day+of+this+month'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
    5     4        INIT_METHOD_CALL                                             !0, 'format'
          5        SEND_VAL_EX                                                  'Y-m-d+H%3Ai%3As'
          6        DO_FCALL                                          0  $4      
          7        CONCAT                                               ~5      $4, '%0A'
          8        ECHO                                                         ~5
    6     9        NEW                                                  $6      'DateTime'
         10        SEND_VAL_EX                                                  'first+day+of+March'
         11        DO_FCALL                                          0          
         12        ASSIGN                                                       !0, $6
    7    13        INIT_METHOD_CALL                                             !0, 'format'
         14        SEND_VAL_EX                                                  'Y-m-d+H%3Ai%3As'
         15        DO_FCALL                                          0  $9      
         16        CONCAT                                               ~10     $9, '%0A'
         17        ECHO                                                         ~10
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.74 ms | 3318 KiB | 13 Q