3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new \DatePeriod( new \DateTime(sprintf('first day of February 2013')), new \DateInterval('P1D'), new \DateTime(sprintf('last day of February 2013 23:59:59')) ); var_dump($period);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/emEMt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $period
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DatePeriod'
    3     1        NEW                                              $2      'DateTime'
          2        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 'first+day+of+February+2013'
          4        DO_ICALL                                         $3      
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $2
    4     8        NEW                                              $5      'DateInterval'
          9        SEND_VAL_EX                                              'P1D'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $5
    5    12        NEW                                              $7      'DateTime'
         13        INIT_FCALL                                               'sprintf'
         14        SEND_VAL                                                 'last+day+of+February+2013+23%3A59%3A59'
         15        DO_ICALL                                         $8      
         16        SEND_VAR_NO_REF_EX                                       $8
         17        DO_FCALL                                      0          
         18        SEND_VAR_NO_REF_EX                                       $7
         19        DO_FCALL                                      0          
    2    20        ASSIGN                                                   !0, $1
    8    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.77 ms | 1395 KiB | 17 Q