3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTimeImmutable('2012-07-01'); $interval = new DateInterval('P7D'); $periodWithRecurrences = new DatePeriod($start, $interval, 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vjVTF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $start, !1 = $interval, !2 = $periodWithRecurrences
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTimeImmutable'
          1        SEND_VAL_EX                                              '2012-07-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        NEW                                              $6      'DateInterval'
          5        SEND_VAL_EX                                              'P7D'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    6     8        NEW                                              $9      'DatePeriod'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAR_EX                                              !1
         11        SEND_VAL_EX                                              0
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !2, $9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.99 ms | 1393 KiB | 13 Q