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 PHP_EOL; print_r(new DateTime('this 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/2kS3p
function name:  (null)
number of ops:  24
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
    8    16        ECHO                                                     '%0A'
   10    17        INIT_FCALL                                               'print_r'
         18        NEW                                              $4      'DateTime'
         19        SEND_VAL_EX                                              'this+thursday'
         20        DO_FCALL                                      0          
         21        SEND_VAR                                                 $4
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.55 ms | 1386 KiB | 23 Q