3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lundi = strtotime('next monday'); $numWeekM6 = strftime('%U', strtotime('+3 week', $lundi) + 1); echo $lundi; echo ' - '; echo $numWeekM6;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WaHqt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $lundi, !1 = $numWeekM6
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'next+monday'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'strftime'
          5        SEND_VAL                                                 '%25U'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 '%2B3+week'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ADD                                              ~5      $4, 1
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    4    14        ECHO                                                     !0
    5    15        ECHO                                                     '+-+'
    6    16        ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1394 KiB | 17 Q