3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.39 ms | 1384 KiB | 13 Q