3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (function_exists('date_default_timezone_set')) { date_default_timezone_set("Europe/London"); } echo date('m/Y', strtotime("-5 month", strtotime("first day of this month"))); echo date('m/Y', strtotime("-5 month", strtotime("first day this month")));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/AQZui
function name:  (null)
number of ops:  32
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'date_default_timezone_set'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->7
    3     4    >   INIT_FCALL                                               'date_default_timezone_set'
          5        SEND_VAL                                                 'Europe%2FLondon'
          6        DO_ICALL                                                 
    5     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'm%2FY'
          9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 '-5+month'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'first+day+of+this+month'
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        DO_ICALL                                         $4      
         18        ECHO                                                     $4
    6    19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'm%2FY'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAL                                                 '-5+month'
         23        INIT_FCALL                                               'strtotime'
         24        SEND_VAL                                                 'first+day+this+month'
         25        DO_ICALL                                         $5      
         26        SEND_VAR                                                 $5
         27        DO_ICALL                                         $6      
         28        SEND_VAR                                                 $6
         29        DO_ICALL                                         $7      
         30        ECHO                                                     $7
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.98 ms | 1396 KiB | 21 Q