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('d/m/Y', strtotime("-5 month", strtotime("first day of this month"))) ."\n"; echo date('d/m/Y', strtotime("-5 month", strtotime("first day this month"))) ."\n"; echo date('d/m/Y', strtotime("-5 month", strtotime(date('Y-m-01')))) ."\n";
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/qVqkT
function name:  (null)
number of ops:  50
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                                                 'd%2Fm%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                                                 'd%2Fm%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        CONCAT                                           ~9      $8, '%0A'
         32        ECHO                                                     ~9
    7    33        INIT_FCALL                                               'date'
         34        SEND_VAL                                                 'd%2Fm%2FY'
         35        INIT_FCALL                                               'strtotime'
         36        SEND_VAL                                                 '-5+month'
         37        INIT_FCALL                                               'strtotime'
         38        INIT_FCALL                                               'date'
         39        SEND_VAL                                                 'Y-m-01'
         40        DO_ICALL                                         $10     
         41        SEND_VAR                                                 $10
         42        DO_ICALL                                         $11     
         43        SEND_VAR                                                 $11
         44        DO_ICALL                                         $12     
         45        SEND_VAR                                                 $12
         46        DO_ICALL                                         $13     
         47        CONCAT                                           ~14     $13, '%0A'
         48        ECHO                                                     ~14
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.72 ms | 1392 KiB | 21 Q