3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime( '2015-02-01' ); $end = new DateTime( ); $interval = new DateInterval('P1D'); $daterange = new DatePeriod($begin, $interval ,$end); foreach($daterange as $date){ echo '/var/www/ws/current/app/console bunny:stats:export-oakley-data --date=' . $date->format("Y-m-d") . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 26
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/tTNt5
function name:  (null)
number of ops:  28
compiled vars:  !0 = $begin, !1 = $end, !2 = $interval, !3 = $daterange, !4 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $5      'DateTime'
          1        SEND_VAL_EX                                              '2015-02-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
    3     4        NEW                                              $8      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $8
    5     7        NEW                                              $11     'DateInterval'
          8        SEND_VAL_EX                                              'P1D'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $11
    6    11        NEW                                              $14     'DatePeriod'
         12        SEND_VAR_EX                                              !0
         13        SEND_VAR_EX                                              !2
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !3, $14
    8    17      > FE_RESET_R                                       $17     !3, ->26
         18    > > FE_FETCH_R                                               $17, !4, ->26
    9    19    >   INIT_METHOD_CALL                                         !4, 'format'
         20        SEND_VAL_EX                                              'Y-m-d'
         21        DO_FCALL                                      0  $18     
         22        CONCAT                                           ~19     '%2Fvar%2Fwww%2Fws%2Fcurrent%2Fapp%2Fconsole+bunny%3Astats%3Aexport-oakley-data+--date%3D', $18
         23        CONCAT                                           ~20     ~19, '%0A'
         24        ECHO                                                     ~20
    8    25      > JMP                                                      ->18
         26    >   FE_FREE                                                  $17
   10    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.67 ms | 1395 KiB | 13 Q