3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = date('I', strtotime('2018-08-10 08:00:00')); $d2 = date('I', strtotime('2018-08-10 23:30:00')); $d3 = date('I', strtotime('2018-12-12 08:00:00')); echo 'D1 is ' . ($d1?'summer':'winer') . 'time' . PHP_EOL; echo 'D2 is ' . ($d2?'summer':'winer') . 'time' . PHP_EOL; echo 'D3 is ' . ($d3?'summer':'winer') . 'time' . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
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
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
Branch analysis from position: 43
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
Branch analysis from position: 35
filename:       /in/DVjdn
function name:  (null)
number of ops:  49
compiled vars:  !0 = $d1, !1 = $d2, !2 = $d3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'I'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '2018-08-10+08%3A00%3A00'
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'I'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '2018-08-10+23%3A30%3A00'
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
    5    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'I'
         18        INIT_FCALL                                               'strtotime'
         19        SEND_VAL                                                 '2018-12-12+08%3A00%3A00'
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                         $10     
         23        ASSIGN                                                   !2, $10
    7    24      > JMPZ                                                     !0, ->27
         25    >   QM_ASSIGN                                        ~12     'summer'
         26      > JMP                                                      ->28
         27    >   QM_ASSIGN                                        ~12     'winer'
         28    >   CONCAT                                           ~13     'D1+is+', ~12
         29        CONCAT                                           ~14     ~13, 'time'
         30        CONCAT                                           ~15     ~14, '%0A'
         31        ECHO                                                     ~15
    8    32      > JMPZ                                                     !1, ->35
         33    >   QM_ASSIGN                                        ~16     'summer'
         34      > JMP                                                      ->36
         35    >   QM_ASSIGN                                        ~16     'winer'
         36    >   CONCAT                                           ~17     'D2+is+', ~16
         37        CONCAT                                           ~18     ~17, 'time'
         38        CONCAT                                           ~19     ~18, '%0A'
         39        ECHO                                                     ~19
    9    40      > JMPZ                                                     !2, ->43
         41    >   QM_ASSIGN                                        ~20     'summer'
         42      > JMP                                                      ->44
         43    >   QM_ASSIGN                                        ~20     'winer'
         44    >   CONCAT                                           ~21     'D3+is+', ~20
         45        CONCAT                                           ~22     ~21, 'time'
         46        CONCAT                                           ~23     ~22, '%0A'
         47        ECHO                                                     ~23
   10    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
242.03 ms | 1008 KiB | 15 Q