3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting( -1 ); date_default_timezone_set( "Europe/Bratislava" ); for ( $i = 0; $i < 7; $i++ ) { $base = strtotime( "2011/01/17 +$i days 12:00:00" ); $weekday = date( "l", $base ); $relative = strtotime( "$weekday this week 12:00:00", $base ); echo date( "l Y/m/d", $base ), "\n", date( "l Y/m/d", $relative ), "\n\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 8
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 8
Branch analysis from position: 42
Branch analysis from position: 8
filename:       /in/qelbK
function name:  (null)
number of ops:  43
compiled vars:  !0 = $i, !1 = $base, !2 = $weekday, !3 = $relative
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date_default_timezone_set'
          4        SEND_VAL                                                 'Europe%2FBratislava'
          5        DO_ICALL                                                 
    6     6        ASSIGN                                                   !0, 0
          7      > JMP                                                      ->40
    9     8    >   INIT_FCALL                                               'strtotime'
          9        ROPE_INIT                                     3  ~8      '2011%2F01%2F17+%2B'
         10        ROPE_ADD                                      1  ~8      ~8, !0
         11        ROPE_END                                      2  ~7      ~8, '+days+12%3A00%3A00'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !1, $10
   10    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'l'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !2, $12
   11    20        INIT_FCALL                                               'strtotime'
         21        NOP                                                      
         22        FAST_CONCAT                                      ~14     !2, '+this+week+12%3A00%3A00'
         23        SEND_VAL                                                 ~14
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !3, $15
   13    27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'l+Y%2Fm%2Fd'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $17     
         31        ECHO                                                     $17
         32        ECHO                                                     '%0A'
         33        INIT_FCALL                                               'date'
         34        SEND_VAL                                                 'l+Y%2Fm%2Fd'
         35        SEND_VAR                                                 !3
         36        DO_ICALL                                         $18     
         37        ECHO                                                     $18
         38        ECHO                                                     '%0A%0A'
    6    39        PRE_INC                                                  !0
         40    >   IS_SMALLER                                               !0, 7
         41      > JMPNZ                                                    ~20, ->8
   14    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.71 ms | 1400 KiB | 21 Q