3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_EOL')) define(PHP_EOL, "\r\n"); date_default_timezone_set('Europe/London'); print date('Y-m-d', strtotime('next thursday')); print date('Y-m-d', strtotime('this thursday')); print PHP_EOL; print_r(new DateTime('next thursday'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/sKFW7
function name:  (null)
number of ops:  32
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <false>, ->5
          1    >   INIT_FCALL                                               'define'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAL                                                 '%0D%0A'
          4        DO_ICALL                                                 
    4     5    >   INIT_FCALL                                               'date_default_timezone_set'
          6        SEND_VAL                                                 'Europe%2FLondon'
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'next+thursday'
         12        DO_ICALL                                         $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                         $3      
         15        ECHO                                                     $3
    7    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d'
         18        INIT_FCALL                                               'strtotime'
         19        SEND_VAL                                                 'this+thursday'
         20        DO_ICALL                                         $4      
         21        SEND_VAR                                                 $4
         22        DO_ICALL                                         $5      
         23        ECHO                                                     $5
    9    24        ECHO                                                     '%0A'
   11    25        INIT_FCALL                                               'print_r'
         26        NEW                                              $6      'DateTime'
         27        SEND_VAL_EX                                              'next+thursday'
         28        DO_FCALL                                      0          
         29        SEND_VAR                                                 $6
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.96 ms | 1396 KiB | 23 Q