3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $timestamp = mktime(0,0,0,11,1,2014); var_dump(strtotime('4 thursdays', $timestamp)); var_dump(strtotime('first thursday + 3 weeks', $timestamp)); date_default_timezone_set('America/Chicago'); $timestamp = mktime(0,0,0,11,1,2014); var_dump(strtotime('4 thursdays', $timestamp)); var_dump(strtotime('first thursday + 3 weeks', $timestamp));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LLkCE
function name:  (null)
number of ops:  53
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'UTC'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'mktime'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 11
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 2014
         10        DO_ICALL                                         $2      
         11        ASSIGN                                                   !0, $2
    4    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '4+thursdays'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                                 
    5    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 'first+thursday+%2B+3+weeks'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $6      
         24        SEND_VAR                                                 $6
         25        DO_ICALL                                                 
    6    26        INIT_FCALL                                               'date_default_timezone_set'
         27        SEND_VAL                                                 'America%2FChicago'
         28        DO_ICALL                                                 
    7    29        INIT_FCALL                                               'mktime'
         30        SEND_VAL                                                 0
         31        SEND_VAL                                                 0
         32        SEND_VAL                                                 0
         33        SEND_VAL                                                 11
         34        SEND_VAL                                                 1
         35        SEND_VAL                                                 2014
         36        DO_ICALL                                         $9      
         37        ASSIGN                                                   !0, $9
    8    38        INIT_FCALL                                               'var_dump'
         39        INIT_FCALL                                               'strtotime'
         40        SEND_VAL                                                 '4+thursdays'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $11     
         43        SEND_VAR                                                 $11
         44        DO_ICALL                                                 
    9    45        INIT_FCALL                                               'var_dump'
         46        INIT_FCALL                                               'strtotime'
         47        SEND_VAL                                                 'first+thursday+%2B+3+weeks'
         48        SEND_VAR                                                 !0
         49        DO_ICALL                                         $13     
         50        SEND_VAR                                                 $13
         51        DO_ICALL                                                 
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.5 ms | 1400 KiB | 21 Q