3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.72 ms | 1396 KiB | 17 Q