3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('2014-12-01'); // simulating year wrap $currentMonth = date('n', $now); $year = date('Y', $now); $nextMonth = $currentMonth + 1; $secondNextMonth = $currentMonth + 2; echo '<th>' . date('M', $now) . '</th>'; echo '<th>' . date('M', mktime(0, 0, 0, $nextMonth, 1, $year)) . '</th>'; echo '<th>' . date('M', mktime(0, 0, 0, $secondNextMonth, 1, $year)) . '</th>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n9BE7
function name:  (null)
number of ops:  56
compiled vars:  !0 = $now, !1 = $currentMonth, !2 = $year, !3 = $nextMonth, !4 = $secondNextMonth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-12-01'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'n'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    6    14        ADD                                              ~11     !1, 1
         15        ASSIGN                                                   !3, ~11
    7    16        ADD                                              ~13     !1, 2
         17        ASSIGN                                                   !4, ~13
    9    18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'M'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $15     
         22        CONCAT                                           ~16     '%3Cth%3E', $15
         23        CONCAT                                           ~17     ~16, '%3C%2Fth%3E'
         24        ECHO                                                     ~17
   10    25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'M'
         27        INIT_FCALL                                               'mktime'
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 0
         30        SEND_VAL                                                 0
         31        SEND_VAR                                                 !3
         32        SEND_VAL                                                 1
         33        SEND_VAR                                                 !2
         34        DO_ICALL                                         $18     
         35        SEND_VAR                                                 $18
         36        DO_ICALL                                         $19     
         37        CONCAT                                           ~20     '%3Cth%3E', $19
         38        CONCAT                                           ~21     ~20, '%3C%2Fth%3E'
         39        ECHO                                                     ~21
   11    40        INIT_FCALL                                               'date'
         41        SEND_VAL                                                 'M'
         42        INIT_FCALL                                               'mktime'
         43        SEND_VAL                                                 0
         44        SEND_VAL                                                 0
         45        SEND_VAL                                                 0
         46        SEND_VAR                                                 !4
         47        SEND_VAL                                                 1
         48        SEND_VAR                                                 !2
         49        DO_ICALL                                         $22     
         50        SEND_VAR                                                 $22
         51        DO_ICALL                                         $23     
         52        CONCAT                                           ~24     '%3Cth%3E', $23
         53        CONCAT                                           ~25     ~24, '%3C%2Fth%3E'
         54        ECHO                                                     ~25
         55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.76 ms | 1400 KiB | 19 Q