3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.75 ms | 1393 KiB | 13 Q