3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = '2014-01-01'; $endDate = '2014-12-31'; $startDateParts = explode('-', $startDate); $endDateParts = explode('-', $endDate); if (!checkdate($startDateParts[1], $startDateParts[0], $startDateParts[2]) || !checkdate($endDateParts[1], $endDateParts[0], $endDateParts[2])) { echo 'Invalid date ranges'; } else { echo 'GTG!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 32
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/NZ1rP
function name:  (null)
number of ops:  37
compiled vars:  !0 = $startDate, !1 = $endDate, !2 = $startDateParts, !3 = $endDateParts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '2014-01-01'
    5     1        ASSIGN                                                   !1, '2014-12-31'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '-'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '-'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    8    12        INIT_FCALL                                               'checkdate'
         13        FETCH_DIM_R                                      ~10     !2, 1
         14        SEND_VAL                                                 ~10
         15        FETCH_DIM_R                                      ~11     !2, 0
         16        SEND_VAL                                                 ~11
         17        FETCH_DIM_R                                      ~12     !2, 2
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                         $13     
         20        BOOL_NOT                                         ~14     $13
         21      > JMPNZ_EX                                         ~14     ~14, ->32
    9    22    >   INIT_FCALL                                               'checkdate'
         23        FETCH_DIM_R                                      ~15     !3, 1
         24        SEND_VAL                                                 ~15
         25        FETCH_DIM_R                                      ~16     !3, 0
         26        SEND_VAL                                                 ~16
         27        FETCH_DIM_R                                      ~17     !3, 2
         28        SEND_VAL                                                 ~17
         29        DO_ICALL                                         $18     
         30        BOOL_NOT                                         ~19     $18
         31        BOOL                                             ~14     ~19
         32    > > JMPZ                                                     ~14, ->35
   10    33    >   ECHO                                                     'Invalid+date+ranges'
         34      > JMP                                                      ->36
   12    35    >   ECHO                                                     'GTG%21'
   13    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.48 ms | 1396 KiB | 17 Q