3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: application/json'); $rows = 10; $tp_chan=2; $tp_profi=913; $tp_sec_start=1877; $ts_sec_start=2106; $server = 'http://200.76.77.237:80/LIVE/H01/CANAL'.$tp_chan.'/PROFILE03-'.$tp_profi.'/'; $count = 0; $nextsecPlus = 4; $ignoreFive=false; $ignoreFive2=false; $today = date('Ymd'); 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 = 94
Branch analysis from position: 94
2 jumps found. (Code = 44) Position 1 = 96, Position 2 = 28
Branch analysis from position: 96
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 50
Branch analysis from position: 30
2 jumps found. (Code = 46) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
2 jumps found. (Code = 46) Position 1 = 82, Position 2 = 84
Branch analysis from position: 82
2 jumps found. (Code = 46) Position 1 = 85, Position 2 = 87
Branch analysis from position: 85
2 jumps found. (Code = 43) Position 1 = 88, Position 2 = 89
Branch analysis from position: 88
2 jumps found. (Code = 44) Position 1 = 96, Position 2 = 28
Branch analysis from position: 96
Branch analysis from position: 28
Branch analysis from position: 89
Branch analysis from position: 87
Branch analysis from position: 84
Branch analysis from position: 49
Branch analysis from position: 36
Branch analysis from position: 34
Branch analysis from position: 50
2 jumps found. (Code = 46) Position 1 = 52, Position 2 = 54
Branch analysis from position: 52
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 66
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
Branch analysis from position: 66
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 79
Branch analysis from position: 68
2 jumps found. (Code = 46) Position 1 = 82, Position 2 = 84
Branch analysis from position: 82
Branch analysis from position: 84
Branch analysis from position: 79
Branch analysis from position: 54
filename:       /in/fe3f9
function name:  (null)
number of ops:  97
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, 2
    6     5        ASSIGN                                                   !2, 913
    7     6        ASSIGN                                                   !3, 1877
    8     7        ASSIGN                                                   !4, 2106
   10     8        CONCAT                                           ~19     'http%3A%2F%2F200.76.77.237%3A80%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>
   17    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Ymd'
         19        DO_ICALL                                         $28     
         20        ASSIGN                                                   !10, $28
   21    21        CONCAT                                           ~30     '%23EXTM3U%0A%23EXT-X-VERSION%3A3%0A%23EXT-X-TARGETDURATION%3A5%0A%23EXT-X-MEDIA-SEQUENCE%3A', !2
         22        CONCAT                                           ~31     ~30, '0'
         23        CONCAT                                           ~32     ~31, !3
         24        CONCAT                                           ~33     ~32, '%0A'
         25        ECHO                                                     ~33
   22    26        ASSIGN                                                   !11, 0
         27      > JMP                                                      ->94
   23    28    >   IS_EQUAL                                                 !7, 4
         29      > JMPZ                                                     ~35, ->50
   24    30    >   BOOL                                             ~36     !8
         31      > JMPZ_EX                                          ~36     ~36, ->34
         32    >   BOOL_NOT                                         ~37     !9
         33        BOOL                                             ~36     ~37
         34    > > JMPZ                                                     ~36, ->36
         35    >   ASSIGN                                                   !7, !7
   25    36    >   ADD                                              ~39     !4, !7
         37        ASSIGN                                                   !4, ~39
   26    38        CONCAT                                           ~41     !5, !3
         39        CONCAT                                           ~42     ~41, '-'
         40        CONCAT                                           ~43     ~42, !10
         41        CONCAT                                           ~44     ~43, 'T'
         42        CONCAT                                           ~45     ~44, !4
         43        CONCAT                                           ~46     ~45, '.ts'
         44        ASSIGN                                                   !12, ~46
   27    45        IS_EQUAL                                                 !7, 5
         46      > JMPZ                                                     ~48, ->49
   29    47    >   ASSIGN                                                   !7, 4
   30    48        ASSIGN                                                   !9, <true>
         49    > > JMP                                                      ->79
   33    50    >   IS_EQUAL                                         ~51     !7, 5
         51      > JMPZ_EX                                          ~51     ~51, ->54
         52    >   BOOL_NOT                                         ~52     !8
         53        BOOL                                             ~51     ~52
         54    > > JMPZ                                                     ~51, ->66
   34    55    >   ADD                                              ~53     !4, 5
         56        ASSIGN                                                   !4, ~53
   35    57        CONCAT                                           ~55     !5, !3
         58        CONCAT                                           ~56     ~55, '-'
         59        CONCAT                                           ~57     ~56, !10
         60        CONCAT                                           ~58     ~57, 'T'
         61        CONCAT                                           ~59     ~58, !4
         62        CONCAT                                           ~60     ~59, '.ts'
         63        ASSIGN                                                   !12, ~60
   36    64        ASSIGN                                                   !7, 3
         65      > JMP                                                      ->79
   38    66    >   IS_EQUAL                                                 !7, 3
         67      > JMPZ                                                     ~63, ->79
   40    68    >   ADD                                              ~64     !4, !7
         69        ASSIGN                                                   !4, ~64
   41    70        CONCAT                                           ~66     !5, !3
         71        CONCAT                                           ~67     ~66, '-'
         72        CONCAT                                           ~68     ~67, !10
         73        CONCAT                                           ~69     ~68, 'T'
         74        CONCAT                                           ~70     ~69, !4
         75        CONCAT                                           ~71     ~70, '.ts'
         76        ASSIGN                                                   !12, ~71
   42    77        ASSIGN                                                   !7, 4
   43    78        ASSIGN                                                   !8, <true>
   46    79    >   PRE_INC                                                  !6
   47    80        IS_SMALLER_OR_EQUAL                              ~76     5, !6
         81      > JMPZ_EX                                          ~76     ~76, ->84
         82    >   BOOL_NOT                                         ~77     !8
         83        BOOL                                             ~76     ~77
         84    > > JMPZ_EX                                          ~76     ~76, ->87
         85    >   IS_EQUAL                                         ~78     !7, 4
         86        BOOL                                             ~76     ~78
         87    > > JMPZ                                                     ~76, ->89
   48    88    >   ASSIGN                                                   !7, 5
   50    89    >   PRE_INC                                                  !3
   51    90        CONCAT                                           ~81     '%23EXTINF%3A4.004%2C%0A', !12
         91        CONCAT                                           ~82     ~81, '%0A'
         92        ECHO                                                     ~82
   22    93        PRE_INC                                                  !11
         94    >   IS_SMALLER                                               !11, !0
         95      > JMPNZ                                                    ~84, ->28
   53    96    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.19 ms | 1415 KiB | 17 Q