3v4l.org

run code in 500+ PHP versions simultaneously
<?php $start = new DateTimeImmutable('2012-07-01'); $end = new DateTimeImmutable('2012-07-31'); $interval = new DateInterval('P7D'); $recurrences = 4; $periodWithRecurrences = new DatePeriod($start, $interval, $recurrences); $rc = new ReflectionClass($periodWithRecurrences); print_r($rc->getProperties()); $periodWithoutRecurrences = new DatePeriod($start, $interval, $end); $rc = new ReflectionClass($periodWithoutRecurrences); print_r($rc->getProperties());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CfZuJ
function name:  (null)
number of ops:  44
compiled vars:  !0 = $start, !1 = $end, !2 = $interval, !3 = $recurrences, !4 = $periodWithRecurrences, !5 = $rc, !6 = $periodWithoutRecurrences
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $7      'DateTimeImmutable'
          1        SEND_VAL_EX                                                  '2012-07-01'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $7
    4     4        NEW                                                  $10     'DateTimeImmutable'
          5        SEND_VAL_EX                                                  '2012-07-31'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $10
    5     8        NEW                                                  $13     'DateInterval'
          9        SEND_VAL_EX                                                  'P7D'
         10        DO_FCALL                                          0          
         11        ASSIGN                                                       !2, $13
    6    12        ASSIGN                                                       !3, 4
    8    13        NEW                                                  $17     'DatePeriod'
         14        SEND_VAR_EX                                                  !0
         15        SEND_VAR_EX                                                  !2
         16        SEND_VAR_EX                                                  !3
         17        DO_FCALL                                          0          
         18        ASSIGN                                                       !4, $17
    9    19        NEW                                                  $20     'ReflectionClass'
         20        SEND_VAR_EX                                                  !4
         21        DO_FCALL                                          0          
         22        ASSIGN                                                       !5, $20
   10    23        INIT_FCALL                                                   'print_r'
         24        INIT_METHOD_CALL                                             !5, 'getProperties'
         25        DO_FCALL                                          0  $23     
         26        SEND_VAR                                                     $23
         27        DO_ICALL                                                     
   12    28        NEW                                                  $25     'DatePeriod'
         29        SEND_VAR_EX                                                  !0
         30        SEND_VAR_EX                                                  !2
         31        SEND_VAR_EX                                                  !1
         32        DO_FCALL                                          0          
         33        ASSIGN                                                       !6, $25
   13    34        NEW                                                  $28     'ReflectionClass'
         35        SEND_VAR_EX                                                  !6
         36        DO_FCALL                                          0          
         37        ASSIGN                                                       !5, $28
   14    38        INIT_FCALL                                                   'print_r'
         39        INIT_METHOD_CALL                                             !5, 'getProperties'
         40        DO_FCALL                                          0  $31     
         41        SEND_VAR                                                     $31
         42        DO_ICALL                                                     
         43      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.09 ms | 2394 KiB | 14 Q