3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lundi = strtotime('next monday'); $numWeekM6 = strftime('%U', strtotime('+4 week', $lundi)); echo $lundi; echo ' - '; echo $numWeekM6;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/kqmj3
function name:  (null)
number of ops:  17
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                                                 '%2B4+week'
         8        SEND_VAR                                                 !0
         9        DO_ICALL                                         $4      
        10        SEND_VAR                                                 $4
        11        DO_ICALL                                         $5      
        12        ASSIGN                                                   !1, $5
   4    13        ECHO                                                     !0
   5    14        ECHO                                                     '+-+'
   6    15        ECHO                                                     !1
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0