3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/K00Mn
function name:  (null)
number of ops:  16
compiled vars:  !0 = $day, !1 = $start, !2 = $firstOccurrence, !3 = $nextOccurence
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Tuesday'
    3     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        SEND_VAR                                                 !1
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
    4     6        INIT_METHOD_CALL                                         !1, 'getTimestamp'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
    5     9        INIT_METHOD_CALL                                         !1, 'modify'
         10        NOP                                                      
         11        FAST_CONCAT                                      ~9      'next+', !0
         12        SEND_VAL_EX                                              ~9
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !3, $10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.14 ms | 1393 KiB | 13 Q