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"))) ."\n"; 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/5UHq0
function name:  (null)
number of ops:  33
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        CONCAT                                           ~5      $4, '%0A'
         19        ECHO                                                     ~5
    6    20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'm%2FY'
         22        INIT_FCALL                                               'strtotime'
         23        SEND_VAL                                                 '-5+month'
         24        INIT_FCALL                                               'strtotime'
         25        SEND_VAL                                                 'first+day+this+month'
         26        DO_ICALL                                         $6      
         27        SEND_VAR                                                 $6
         28        DO_ICALL                                         $7      
         29        SEND_VAR                                                 $7
         30        DO_ICALL                                         $8      
         31        ECHO                                                     $8
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.74 ms | 1396 KiB | 21 Q