3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = "autore|||||titolo|||||album|||||2.38|||||1.59.59"; $infos = explode('|||||',$info); if(isset($infos['0'])){$at=$infos['0'];}else{$at="";} if(isset($infos['1'])){$tt=$infos['1'];}else{$tt="";} if(isset($infos['2'])){$aa=$infos['2'];}else{$aa="";} if(isset($infos['3']) && is_numeric($infos['3'])){$te=$infos['3'];}else{$te="0.0";} if(isset($infos['4']) && is_numeric($infos['4'])){$td=$infos['4'];}else{$td="0.0";} //Calculate times $te_ex = array_reverse(explode('.', $te));// per le tracce superiori a 1 ora e fino alle 23 ore 59 minuti e 59 secondi $td_ex = array_reverse(explode('.', $td));// per le tracce superiori a 1 ora e fino alle 23 ore 59 minuti e 59 secondi if(isset($te_ex[1])) {//ricavo -ore minuti e secondi- se i dati ricavati sono validi (ATTENZIONE: in fondo al brano "Sconosciuto") if(isset($td_ex[2])) {$tdh = $td_ex[2] * 3600;} else {$tdh = 0;} if(isset($te_ex[2])) {$teh = $te_ex[2] * 3600;} else {$teh = 0;} $tesec = (($teh) + ($te_ex[1] * 60) + $te_ex[0]); $tdsec = (($tdh) + ($td_ex[1] * 60) + $td_ex[0]); $trsec = $tdsec-$tesec; //tempo restante al termine della canzone }else{ $tesec = $tdsec = $trsec = 0; } echo $info."<br />"; echo $te.": "; print_r($te_ex); echo '<br />'.$td.": "; print_r($td_ex); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 26, Position 2 = 31
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 35
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 38, Position 2 = 43
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 95
Branch analysis from position: 66
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 72
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 73
Branch analysis from position: 73
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 79
Branch analysis from position: 75
1 jumps found. (Code = 42) Position 1 = 80
Branch analysis from position: 80
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 79
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
Branch analysis from position: 72
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 79
Branch analysis from position: 75
Branch analysis from position: 79
Branch analysis from position: 95
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 95
Branch analysis from position: 66
Branch analysis from position: 95
Branch analysis from position: 43
Branch analysis from position: 35
2 jumps found. (Code = 46) Position 1 = 38, Position 2 = 43
Branch analysis from position: 38
Branch analysis from position: 43
Branch analysis from position: 31
Branch analysis from position: 23
2 jumps found. (Code = 46) Position 1 = 26, Position 2 = 31
Branch analysis from position: 26
Branch analysis from position: 31
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
Branch analysis from position: 23
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
Branch analysis from position: 17
filename:       /in/kKT6J
function name:  (null)
number of ops:  112
compiled vars:  !0 = $info, !1 = $infos, !2 = $at, !3 = $tt, !4 = $aa, !5 = $te, !6 = $td, !7 = $te_ex, !8 = $td_ex, !9 = $tdh, !10 = $teh, !11 = $tesec, !12 = $tdsec, !13 = $trsec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'autore%7C%7C%7C%7C%7Ctitolo%7C%7C%7C%7C%7Calbum%7C%7C%7C%7C%7C2.38%7C%7C%7C%7C%7C1.59.59'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%7C%7C%7C%7C%7C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $15     
          5        ASSIGN                                                   !1, $15
    4     6        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 0
          7      > JMPZ                                                     ~17, ->11
          8    >   FETCH_DIM_R                                      ~18     !1, 0
          9        ASSIGN                                                   !2, ~18
         10      > JMP                                                      ->12
         11    >   ASSIGN                                                   !2, ''
    5    12    >   ISSET_ISEMPTY_DIM_OBJ                         0          !1, 1
         13      > JMPZ                                                     ~21, ->17
         14    >   FETCH_DIM_R                                      ~22     !1, 1
         15        ASSIGN                                                   !3, ~22
         16      > JMP                                                      ->18
         17    >   ASSIGN                                                   !3, ''
    6    18    >   ISSET_ISEMPTY_DIM_OBJ                         0          !1, 2
         19      > JMPZ                                                     ~25, ->23
         20    >   FETCH_DIM_R                                      ~26     !1, 2
         21        ASSIGN                                                   !4, ~26
         22      > JMP                                                      ->24
         23    >   ASSIGN                                                   !4, ''
    7    24    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~29     !1, 3
         25      > JMPZ_EX                                          ~29     ~29, ->31
         26    >   INIT_FCALL                                               'is_numeric'
         27        FETCH_DIM_R                                      ~30     !1, 3
         28        SEND_VAL                                                 ~30
         29        DO_ICALL                                         $31     
         30        BOOL                                             ~29     $31
         31    > > JMPZ                                                     ~29, ->35
         32    >   FETCH_DIM_R                                      ~32     !1, 3
         33        ASSIGN                                                   !5, ~32
         34      > JMP                                                      ->36
         35    >   ASSIGN                                                   !5, '0.0'
    8    36    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~35     !1, 4
         37      > JMPZ_EX                                          ~35     ~35, ->43
         38    >   INIT_FCALL                                               'is_numeric'
         39        FETCH_DIM_R                                      ~36     !1, 4
         40        SEND_VAL                                                 ~36
         41        DO_ICALL                                         $37     
         42        BOOL                                             ~35     $37
         43    > > JMPZ                                                     ~35, ->47
         44    >   FETCH_DIM_R                                      ~38     !1, 4
         45        ASSIGN                                                   !6, ~38
         46      > JMP                                                      ->48
         47    >   ASSIGN                                                   !6, '0.0'
   10    48    >   INIT_FCALL                                               'array_reverse'
         49        INIT_FCALL                                               'explode'
         50        SEND_VAL                                                 '.'
         51        SEND_VAR                                                 !5
         52        DO_ICALL                                         $41     
         53        SEND_VAR                                                 $41
         54        DO_ICALL                                         $42     
         55        ASSIGN                                                   !7, $42
   11    56        INIT_FCALL                                               'array_reverse'
         57        INIT_FCALL                                               'explode'
         58        SEND_VAL                                                 '.'
         59        SEND_VAR                                                 !6
         60        DO_ICALL                                         $44     
         61        SEND_VAR                                                 $44
         62        DO_ICALL                                         $45     
         63        ASSIGN                                                   !8, $45
   12    64        ISSET_ISEMPTY_DIM_OBJ                         0          !7, 1
         65      > JMPZ                                                     ~47, ->95
   13    66    >   ISSET_ISEMPTY_DIM_OBJ                         0          !8, 2
         67      > JMPZ                                                     ~48, ->72
         68    >   FETCH_DIM_R                                      ~49     !8, 2
         69        MUL                                              ~50     ~49, 3600
         70        ASSIGN                                                   !9, ~50
         71      > JMP                                                      ->73
         72    >   ASSIGN                                                   !9, 0
   14    73    >   ISSET_ISEMPTY_DIM_OBJ                         0          !7, 2
         74      > JMPZ                                                     ~53, ->79
         75    >   FETCH_DIM_R                                      ~54     !7, 2
         76        MUL                                              ~55     ~54, 3600
         77        ASSIGN                                                   !10, ~55
         78      > JMP                                                      ->80
         79    >   ASSIGN                                                   !10, 0
   15    80    >   FETCH_DIM_R                                      ~58     !7, 1
         81        MUL                                              ~59     ~58, 60
         82        ADD                                              ~60     !10, ~59
         83        FETCH_DIM_R                                      ~61     !7, 0
         84        ADD                                              ~62     ~60, ~61
         85        ASSIGN                                                   !11, ~62
   16    86        FETCH_DIM_R                                      ~64     !8, 1
         87        MUL                                              ~65     ~64, 60
         88        ADD                                              ~66     !9, ~65
         89        FETCH_DIM_R                                      ~67     !8, 0
         90        ADD                                              ~68     ~66, ~67
         91        ASSIGN                                                   !12, ~68
   17    92        SUB                                              ~70     !12, !11
         93        ASSIGN                                                   !13, ~70
         94      > JMP                                                      ->98
   19    95    >   ASSIGN                                           ~72     !13, 0
         96        ASSIGN                                           ~73     !12, ~72
         97        ASSIGN                                                   !11, ~73
   21    98    >   CONCAT                                           ~75     !0, '%3Cbr+%2F%3E'
         99        ECHO                                                     ~75
   22   100        CONCAT                                           ~76     !5, '%3A+'
        101        ECHO                                                     ~76
   23   102        INIT_FCALL                                               'print_r'
        103        SEND_VAR                                                 !7
        104        DO_ICALL                                                 
   24   105        CONCAT                                           ~78     '%3Cbr+%2F%3E', !6
        106        CONCAT                                           ~79     ~78, '%3A+'
        107        ECHO                                                     ~79
   25   108        INIT_FCALL                                               'print_r'
        109        SEND_VAR                                                 !8
        110        DO_ICALL                                                 
   26   111      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1408 KiB | 21 Q