3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dp = new DatePeriod( new DateTime('2012-07-01T00:00:00Z'), new DateInterval('P7D'), 0 ); var_dump($dp->getRecurrences()); //expected 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E8MT8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DatePeriod'
    4     1        NEW                                              $2      'DateTime'
          2        SEND_VAL_EX                                              '2012-07-01T00%3A00%3A00Z'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
    5     5        NEW                                              $4      'DateInterval'
          6        SEND_VAL_EX                                              'P7D'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $4
    6     9        SEND_VAL_EX                                              0
         10        DO_FCALL                                      0          
    3    11        ASSIGN                                                   !0, $1
    9    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'getRecurrences'
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.46 ms | 1394 KiB | 15 Q