3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_EOL')) define(PHP_EOL, "\r\n"); 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 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/siSIJ
function name:  (null)
number of ops:  21
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                                                 
    5     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d'
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 'next+thursday'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        ECHO                                                     $2
    7    13        ECHO                                                     '%0A'
    9    14        INIT_FCALL                                               'print_r'
         15        NEW                                              $3      'DateTime'
         16        SEND_VAL_EX                                              'next+thursday'
         17        DO_FCALL                                      0          
         18        SEND_VAR                                                 $3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.48 ms | 1399 KiB | 21 Q