3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = "20141001T06:07:00"; $end = "20141007T06:07:00"; //$start = date_create(date('Y-m-d H:i:s', strtotime($start))); //$end = date_create(date('Y-m-d H:i:s', strtotime($end))); $start = new DateTime($start); $end = new DateTime($end); $interval = $start->diff($end); if($interval->format('%R%a') > 0 ) { for($i=0; $i<$interval->format('a'); $i++){ echo $i."<br>"; } } //echo $interval->format('%R%a days');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 29
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 21
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 21
Branch analysis from position: 29
Branch analysis from position: 21
Branch analysis from position: 29
filename:       /in/VRJBE
function name:  (null)
number of ops:  30
compiled vars:  !0 = $start, !1 = $end, !2 = $interval, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '20141001T06%3A07%3A00'
    3     1        ASSIGN                                                   !1, '20141007T06%3A07%3A00'
    8     2        NEW                                              $6      'DateTime'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $6
    9     6        NEW                                              $9      'DateTime'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $9
   11    10        INIT_METHOD_CALL                                         !0, 'diff'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $12     
         13        ASSIGN                                                   !2, $12
   13    14        INIT_METHOD_CALL                                         !2, 'format'
         15        SEND_VAL_EX                                              '%25R%25a'
         16        DO_FCALL                                      0  $14     
         17        IS_SMALLER                                               0, $14
         18      > JMPZ                                                     ~15, ->29
   14    19    >   ASSIGN                                                   !3, 0
         20      > JMP                                                      ->24
   15    21    >   CONCAT                                           ~17     !3, '%3Cbr%3E'
         22        ECHO                                                     ~17
   14    23        PRE_INC                                                  !3
         24    >   INIT_METHOD_CALL                                         !2, 'format'
         25        SEND_VAL_EX                                              'a'
         26        DO_FCALL                                      0  $19     
         27        IS_SMALLER                                               !3, $19
         28      > JMPNZ                                                    ~20, ->21
   19    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.32 ms | 1395 KiB | 13 Q