3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = date('l'); $test = ''; if($test = "Sunday"){ $end = strtotime('Sunday last week'); }else{ $end = strtotime('Sunday this week'); } echo $end;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BnsP6
function name:  (null)
number of ops:  18
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                                                   !0, ''
    5     5        ASSIGN                                           ~5      !0, 'Sunday'
          6      > JMPZ                                                     ~5, ->12
    6     7    >   INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 'Sunday+last+week'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
         11      > JMP                                                      ->16
    8    12    >   INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'Sunday+this+week'
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !1, $8
   10    16    >   ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.86 ms | 1386 KiB | 17 Q