3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstAvailableCount = 100; $slice = 'weekly'; $countData = array(); $startDateTime = new DateTime("2015-06-03"); $endDateTime = new DateTime("2016-01-05"); fillCountMapPeriod($startDateTime,$endDateTime,$countData,$firstAvailableCount,$slice); function fillCountMapPeriod( DateTime $startDateTime, DateTime $endDateTime, array $countData, $firstAvailableCount, $slice) { $monthlyInterval = new DateInterval('P1M'); while($startDateTime->add($monthlyInterval) < $endDateTime){ var_dump($startDateTime); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ju4p7
function name:  (null)
number of ops:  19
compiled vars:  !0 = $firstAvailableCount, !1 = $slice, !2 = $countData, !3 = $startDateTime, !4 = $endDateTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100
    4     1        ASSIGN                                                   !1, 'weekly'
    5     2        ASSIGN                                                   !2, <array>
    7     3        NEW                                              $8      'DateTime'
          4        SEND_VAL_EX                                              '2015-06-03'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !3, $8
    8     7        NEW                                              $11     'DateTime'
          8        SEND_VAL_EX                                              '2016-01-05'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $11
   10    11        INIT_FCALL_BY_NAME                                       'fillCountMapPeriod'
         12        SEND_VAR_EX                                              !3
         13        SEND_VAR_EX                                              !4
         14        SEND_VAR_EX                                              !2
         15        SEND_VAR_EX                                              !0
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0          
   21    18      > RETURN                                                   1

Function fillcountmapperiod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/ju4p7
function name:  fillCountMapPeriod
number of ops:  19
compiled vars:  !0 = $startDateTime, !1 = $endDateTime, !2 = $countData, !3 = $firstAvailableCount, !4 = $slice, !5 = $monthlyInterval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
   14     5        NEW                                              $6      'DateInterval'
          6        SEND_VAL_EX                                              'P1M'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !5, $6
   16     9      > JMP                                                      ->13
   17    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   16    13    >   INIT_METHOD_CALL                                         !0, 'add'
         14        SEND_VAR_EX                                              !5
         15        DO_FCALL                                      0  $10     
         16        IS_SMALLER                                               $10, !1
         17      > JMPNZ                                                    ~11, ->10
   21    18    > > RETURN                                                   null

End of function fillcountmapperiod

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.4 ms | 1400 KiB | 15 Q