3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: application/json'); $rows = 10; $tp_chan=436; $tp_profi=116; $tp_sec_start=1; $ts_sec_start=2; $server = 'http://ott.cdn.iutpcdn.com/LIVE/H01/CANAL'.$tp_chan.'/PROFILE03-'.$tp_profi.'/'; $count = 0; $nextsecPlus = 4; $ignoreFive=false; $ignoreFive2=false; //$today = date('Ymd'); $today = mktime(0, 0, 0, date("m") , date("d")-1, date("Y")); echo "#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:".$tp_profi."0".$tp_sec_start."\n"; for($i = 0; $i < $rows; $i++) { if($nextsecPlus==4){ if($ignoreFive==true && $ignoreFive2==false){$nextsecPlus = $nextsecPlus;} $ts_sec_start = $ts_sec_start+$nextsecPlus; $ts = /*$nextsecPlus.'A_'.*/$server.$tp_sec_start.'-'.$today.'T'.$ts_sec_start.'.ts?'; if($nextsecPlus==5) { $nextsecPlus=4; $ignoreFive2=true; } } else if($nextsecPlus == 5 && $ignoreFive==false){ $ts_sec_start = $ts_sec_start+5; $ts = /*$nextsecPlus.'B_'.*/$server.$tp_sec_start.'-'.$today.'T'.$ts_sec_start.'.ts?'; $nextsecPlus=3; } else if($nextsecPlus == 3){ $ts_sec_start = $ts_sec_start+$nextsecPlus; $ts = /*$nextsecPlus.'C_'.*/$server.$tp_sec_start.'-'.$today.'T'.$ts_sec_start.'.ts?'; $nextsecPlus=4; $ignoreFive = true; } $count++; if($count >= 5 && $ignoreFive==false && $nextsecPlus ==4){ $nextsecPlus = 5; } $tp_sec_start++; echo "#EXTINF:4.004,\n".$ts."?\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 109
Branch analysis from position: 109
2 jumps found. (Code = 44) Position 1 = 111, Position 2 = 43
Branch analysis from position: 111
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 65
Branch analysis from position: 45
2 jumps found. (Code = 46) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 51
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 64
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
2 jumps found. (Code = 46) Position 1 = 97, Position 2 = 99
Branch analysis from position: 97
2 jumps found. (Code = 46) Position 1 = 100, Position 2 = 102
Branch analysis from position: 100
2 jumps found. (Code = 43) Position 1 = 103, Position 2 = 104
Branch analysis from position: 103
2 jumps found. (Code = 44) Position 1 = 111, Position 2 = 43
Branch analysis from position: 111
Branch analysis from position: 43
Branch analysis from position: 104
Branch analysis from position: 102
Branch analysis from position: 99
Branch analysis from position: 64
Branch analysis from position: 51
Branch analysis from position: 49
Branch analysis from position: 65
2 jumps found. (Code = 46) Position 1 = 67, Position 2 = 69
Branch analysis from position: 67
2 jumps found. (Code = 43) Position 1 = 70, Position 2 = 81
Branch analysis from position: 70
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
Branch analysis from position: 81
2 jumps found. (Code = 43) Position 1 = 83, Position 2 = 94
Branch analysis from position: 83
2 jumps found. (Code = 46) Position 1 = 97, Position 2 = 99
Branch analysis from position: 97
Branch analysis from position: 99
Branch analysis from position: 94
Branch analysis from position: 69
filename:       /in/Tp9Cv
function name:  (null)
number of ops:  112
compiled vars:  !0 = $rows, !1 = $tp_chan, !2 = $tp_profi, !3 = $tp_sec_start, !4 = $ts_sec_start, !5 = $server, !6 = $count, !7 = $nextsecPlus, !8 = $ignoreFive, !9 = $ignoreFive2, !10 = $today, !11 = $i, !12 = $ts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+application%2Fjson'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 10
    5     4        ASSIGN                                                   !1, 436
    6     5        ASSIGN                                                   !2, 116
    7     6        ASSIGN                                                   !3, 1
    8     7        ASSIGN                                                   !4, 2
   10     8        CONCAT                                           ~19     'http%3A%2F%2Fott.cdn.iutpcdn.com%2FLIVE%2FH01%2FCANAL', !1
          9        CONCAT                                           ~20     ~19, '%2FPROFILE03-'
         10        CONCAT                                           ~21     ~20, !2
         11        CONCAT                                           ~22     ~21, '%2F'
         12        ASSIGN                                                   !5, ~22
   12    13        ASSIGN                                                   !6, 0
   13    14        ASSIGN                                                   !7, 4
   14    15        ASSIGN                                                   !8, <false>
   15    16        ASSIGN                                                   !9, <false>
   20    17        INIT_FCALL                                               'mktime'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 0
         21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'm'
         23        DO_ICALL                                         $28     
         24        SEND_VAR                                                 $28
         25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'd'
         27        DO_ICALL                                         $29     
         28        SUB                                              ~30     $29, 1
         29        SEND_VAL                                                 ~30
         30        INIT_FCALL                                               'date'
         31        SEND_VAL                                                 'Y'
         32        DO_ICALL                                         $31     
         33        SEND_VAR                                                 $31
         34        DO_ICALL                                         $32     
         35        ASSIGN                                                   !10, $32
   24    36        CONCAT                                           ~34     '%23EXTM3U%0A%23EXT-X-VERSION%3A3%0A%23EXT-X-TARGETDURATION%3A5%0A%23EXT-X-MEDIA-SEQUENCE%3A', !2
         37        CONCAT                                           ~35     ~34, '0'
         38        CONCAT                                           ~36     ~35, !3
         39        CONCAT                                           ~37     ~36, '%0A'
         40        ECHO                                                     ~37
   25    41        ASSIGN                                                   !11, 0
         42      > JMP                                                      ->109
   26    43    >   IS_EQUAL                                                 !7, 4
         44      > JMPZ                                                     ~39, ->65
   27    45    >   BOOL                                             ~40     !8
         46      > JMPZ_EX                                          ~40     ~40, ->49
         47    >   BOOL_NOT                                         ~41     !9
         48        BOOL                                             ~40     ~41
         49    > > JMPZ                                                     ~40, ->51
         50    >   ASSIGN                                                   !7, !7
   28    51    >   ADD                                              ~43     !4, !7
         52        ASSIGN                                                   !4, ~43
   29    53        CONCAT                                           ~45     !5, !3
         54        CONCAT                                           ~46     ~45, '-'
         55        CONCAT                                           ~47     ~46, !10
         56        CONCAT                                           ~48     ~47, 'T'
         57        CONCAT                                           ~49     ~48, !4
         58        CONCAT                                           ~50     ~49, '.ts%3F'
         59        ASSIGN                                                   !12, ~50
   30    60        IS_EQUAL                                                 !7, 5
         61      > JMPZ                                                     ~52, ->64
   32    62    >   ASSIGN                                                   !7, 4
   33    63        ASSIGN                                                   !9, <true>
         64    > > JMP                                                      ->94
   36    65    >   IS_EQUAL                                         ~55     !7, 5
         66      > JMPZ_EX                                          ~55     ~55, ->69
         67    >   BOOL_NOT                                         ~56     !8
         68        BOOL                                             ~55     ~56
         69    > > JMPZ                                                     ~55, ->81
   37    70    >   ADD                                              ~57     !4, 5
         71        ASSIGN                                                   !4, ~57
   38    72        CONCAT                                           ~59     !5, !3
         73        CONCAT                                           ~60     ~59, '-'
         74        CONCAT                                           ~61     ~60, !10
         75        CONCAT                                           ~62     ~61, 'T'
         76        CONCAT                                           ~63     ~62, !4
         77        CONCAT                                           ~64     ~63, '.ts%3F'
         78        ASSIGN                                                   !12, ~64
   39    79        ASSIGN                                                   !7, 3
         80      > JMP                                                      ->94
   41    81    >   IS_EQUAL                                                 !7, 3
         82      > JMPZ                                                     ~67, ->94
   43    83    >   ADD                                              ~68     !4, !7
         84        ASSIGN                                                   !4, ~68
   44    85        CONCAT                                           ~70     !5, !3
         86        CONCAT                                           ~71     ~70, '-'
         87        CONCAT                                           ~72     ~71, !10
         88        CONCAT                                           ~73     ~72, 'T'
         89        CONCAT                                           ~74     ~73, !4
         90        CONCAT                                           ~75     ~74, '.ts%3F'
         91        ASSIGN                                                   !12, ~75
   45    92        ASSIGN                                                   !7, 4
   46    93        ASSIGN                                                   !8, <true>
   49    94    >   PRE_INC                                                  !6
   50    95        IS_SMALLER_OR_EQUAL                              ~80     5, !6
         96      > JMPZ_EX                                          ~80     ~80, ->99
         97    >   BOOL_NOT                                         ~81     !8
         98        BOOL                                             ~80     ~81
         99    > > JMPZ_EX                                          ~80     ~80, ->102
        100    >   IS_EQUAL                                         ~82     !7, 4
        101        BOOL                                             ~80     ~82
        102    > > JMPZ                                                     ~80, ->104
   51   103    >   ASSIGN                                                   !7, 5
   53   104    >   PRE_INC                                                  !3
   54   105        CONCAT                                           ~85     '%23EXTINF%3A4.004%2C%0A', !12
        106        CONCAT                                           ~86     ~85, '%3F%0A'
        107        ECHO                                                     ~86
   25   108        PRE_INC                                                  !11
        109    >   IS_SMALLER                                               !11, !0
        110      > JMPNZ                                                    ~88, ->43
   56   111    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.78 ms | 1409 KiB | 19 Q