3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTime')) { $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 = 43) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/AnviN
function name:  (null)
number of ops:  17
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                                                     $1, ->16
    4     4    >   NEW                                              $2      'DateTime'
          5        SEND_VAL_EX                                              '2014W02'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
    5     8        INIT_METHOD_CALL                                         !0, 'modify'
          9        SEND_VAL_EX                                              '-1+week'
         10        DO_FCALL                                      0  $5      
         11        INIT_METHOD_CALL                                         $5, 'format'
         12        SEND_VAL_EX                                              'r'
         13        DO_FCALL                                      0  $6      
         14        ECHO                                                     $6
         15        ECHO                                                     '%0A'
    6    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.87 ms | 1386 KiB | 15 Q