3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = '2014-03-20 18:23:15'; $day="Tuesday"; $start=DateTime::createFromFormat('Y-m-d H:i:s', $start); $firstOccurrence= $start->getTimestamp(); $nextOccurence=$start->modify("next $day");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TTSSd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $start, !1 = $day, !2 = $firstOccurrence, !3 = $nextOccurence
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-03-20+18%3A23%3A15'
    3     1        ASSIGN                                                   !1, 'Tuesday'
    4     2        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          3        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !0, $6
    5     7        INIT_METHOD_CALL                                         !0, 'getTimestamp'
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !2, $8
    6    10        INIT_METHOD_CALL                                         !0, 'modify'
         11        NOP                                                      
         12        FAST_CONCAT                                      ~10     'next+', !1
         13        SEND_VAL_EX                                              ~10
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !3, $11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.44 ms | 1397 KiB | 13 Q