3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date_default_timezone_get() . "\n"; date_default_timezone_set('UTC'); $timestamp = mktime(0,0,0,11,1,2014); echo strtotime('4 thursdays', $timestamp) . "\n"; echo strtotime('first thursday + 3 weeks', $timestamp) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3dVd
function name:  (null)
number of ops:  29
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_get'
          1        DO_ICALL                                         $1      
          2        CONCAT                                           ~2      $1, '%0A'
          3        ECHO                                                     ~2
    3     4        INIT_FCALL                                               'date_default_timezone_set'
          5        SEND_VAL                                                 'UTC'
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'mktime'
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 11
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 2014
         14        DO_ICALL                                         $4      
         15        ASSIGN                                                   !0, $4
    5    16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '4+thursdays'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $6      
         20        CONCAT                                           ~7      $6, '%0A'
         21        ECHO                                                     ~7
    6    22        INIT_FCALL                                               'strtotime'
         23        SEND_VAL                                                 'first+thursday+%2B+3+weeks'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $8      
         26        CONCAT                                           ~9      $8, '%0A'
         27        ECHO                                                     ~9
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1395 KiB | 21 Q