3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $_SERVER['REQUEST_URI']; 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('next thursday'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/9SSJV
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~0      '_SERVER'
          1        FETCH_DIM_R                                      ~1      ~0, 'REQUEST_URI'
          2        ECHO                                                     ~1
    4     3      > JMPZ                                                     <false>, ->8
          4    >   INIT_FCALL                                               'define'
          5        SEND_VAL                                                 '%0A'
          6        SEND_VAL                                                 '%0D%0A'
          7        DO_ICALL                                                 
    5     8    >   INIT_FCALL                                               'date_default_timezone_set'
          9        SEND_VAL                                                 'Europe%2FLondon'
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 'next+thursday'
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                         $5      
         18        ECHO                                                     $5
    9    19        ECHO                                                     '%0A'
   11    20        INIT_FCALL                                               'print_r'
         21        NEW                                              $6      'DateTime'
         22        SEND_VAL_EX                                              'next+thursday'
         23        DO_FCALL                                      0          
         24        SEND_VAR                                                 $6
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.51 ms | 1395 KiB | 23 Q