3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this_thr_str = strtotime('this Thursday'); if($this_thr_str <= strtotime("now")){ echo 'This thurs<br>'; $thrs = date('mdy',$this_thr_str); }else{ echo 'Last Thurs<br>'; $thrs = strtotime('last Tuesday'); } $link = 'http://marc.ucla.edu/mpeg/Hammer'.$thrs.'.mp3'; echo $link; // //echo date('mdy',$tuestr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UTYjo
function name:  (null)
number of ops:  26
compiled vars:  !0 = $this_thr_str, !1 = $thrs, !2 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'this+Thursday'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'now'
          6        DO_ICALL                                         $5      
          7        IS_SMALLER_OR_EQUAL                                      !0, $5
          8      > JMPZ                                                     ~6, ->16
    4     9    >   ECHO                                                     'This+thurs%3Cbr%3E'
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'mdy'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
         15      > JMP                                                      ->21
    7    16    >   ECHO                                                     'Last+Thurs%3Cbr%3E'
    8    17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 'last+Tuesday'
         19        DO_ICALL                                         $9      
         20        ASSIGN                                                   !1, $9
   10    21    >   CONCAT                                           ~11     'http%3A%2F%2Fmarc.ucla.edu%2Fmpeg%2FHammer', !1
         22        CONCAT                                           ~12     ~11, '.mp3'
         23        ASSIGN                                                   !2, ~12
   11    24        ECHO                                                     !2
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.96 ms | 1399 KiB | 18 Q