3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTime') && method_exists('DateTime', 'modify')) { $d = new DateTime('2014W02'); echo $d->modify('-1 week')->format('r'), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 9
filename:       /in/LHTHv
function name:  (null)
number of ops:  23
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'DateTime'
          2        DO_ICALL                                         $1      
          3      > JMPZ_EX                                          ~2      $1, ->9
          4    >   INIT_FCALL                                               'method_exists'
          5        SEND_VAL                                                 'DateTime'
          6        SEND_VAL                                                 'modify'
          7        DO_ICALL                                         $3      
          8        BOOL                                             ~2      $3
          9    > > JMPZ                                                     ~2, ->22
    4    10    >   NEW                                              $4      'DateTime'
         11        SEND_VAL_EX                                              '2014W02'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !0, $4
    5    14        INIT_METHOD_CALL                                         !0, 'modify'
         15        SEND_VAL_EX                                              '-1+week'
         16        DO_FCALL                                      0  $7      
         17        INIT_METHOD_CALL                                         $7, 'format'
         18        SEND_VAL_EX                                              'r'
         19        DO_FCALL                                      0  $8      
         20        ECHO                                                     $8
         21        ECHO                                                     '%0A'
    6    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1395 KiB | 17 Q