3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = date('l'); if($test = "Sunday"){ $end = strtotime('Sunday last week'); }else{ $end = strtotime('Sunday this week'); } echo strtotime('Monday last week');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bLKSk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'l'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                           ~4      !0, 'Sunday'
          5      > JMPZ                                                     ~4, ->11
    5     6    >   INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 'Sunday+last+week'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
         10      > JMP                                                      ->15
    7    11    >   INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'Sunday+this+week'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
   10    15    >   INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 'Monday+last+week'
         17        DO_ICALL                                         $9      
         18        ECHO                                                     $9
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.56 ms | 1395 KiB | 17 Q