3v4l.org

run code in 300+ PHP versions simultaneously
$variables["timeline"] = '{"intro":"In four decades of business MIKI Travel has grown tobecome one of the most influential private travel companies in the world.\r\nWith over 36 offices globally we offer a complete travel product.","image":"http:\/\/dev.miki.com\/sites\/MikiTravelGlobal\/files\/japan_bg.jpg","headline":"Founded in 1967","statement":"Miki Travel was founded with offices in London and Tokyo, originally to operate the incoming Japanese liesure market into Europe","timeline_entries":{"1":{"timeline_event_time":"1967","timeline_event_title":"Miki Travel was founded with offices in London and Tokyo, originally to operate the incoming Japanese liesure market into Europe","timeline_event_type":"location-event"},"2":{"timeline_event_time":"1980","timeline_event_title":"Went on to sell Europe to rest of the world","timeline_event_type":"business-event"},"3":{"timeline_event_time":"1988","timeline_event_title":"Opening of 9 Further offices in Europe (24 in total).","timeline_event_type":"location-event"},"4":{"timeline_event_time":"1990","timeline_event_title":"Extended our portfolio of products to destinations in Middle East and Africa, + Online systems developed","timeline_event_type":"business-event"},"5":{"timeline_event_time":"1994","timeline_event_title":"vLaunch of REX - Online Hotel Reservation System","timeline_event_type":"service-event"}}}'; <div class="row"> <div class="container"> <ul class="timeline"> <li class="intro"> <span class="milestone-legend hidden"></span> <span class="milestone-year"> <ul class="intro-legend"> <li class="intro-image" style="background: url('<?php print $variables["timeline"]["image"]; ?>'); background-size: cover;"> </li> <li class="intro-text"> <p class="intro-heading"> <?php if((isset($variables["timeline"])) && (sizeof($variables["timeline"]["headline"]) != 0)){ print $variables["timeline"]["headline"]; } ?> </p> <p class="intro-statement"> <?php if((isset($variables["timeline"])) && (sizeof($variables["timeline"]["statement"]) != 0)){ print $variables["timeline"]["statement"]; } ?> </p> </li> </ul> </span> <span class="milestone-legend hidden"></span> </li> <?php if((isset($variables["timeline"])) && (sizeof($variables["timeline"]["timeline_entries"]) != 0)){ $timeline_entries = $variables["timeline"]["timeline_entries"]; $counter = 0; $side = ""; $milestone = ""; foreach($timeline_entries as $entries){ $milestone .= '<li>'; if($counter % 2 == 0) { $milestone .= '<span class="milestone-legend milestone-legend-left '; $milestone .= $entries["timeline_event_type"]; $milestone .= '">'; $milestone .= '<span class="event-title">'; $milestone .= $entries["timeline_event_title"]; $milestone .= '</span>'; $milestone .= '<span class="event-image"></span>'; $milestone .= '</span>'; $milestone .= '<span class="milestone-year">'; $milestone .= "'".substr($entries["timeline_event_time"], -2); $milestone .= '</span>'; $milestone .= '<span class="milestone-legend milestone-legend-right" style="visibility: hidden;">'; $milestone .= '</span>'; }else{ $milestone .= '<span class="milestone-legend milestone-legend-left" style="visibility: hidden;">'; $milestone .= '</span>'; $milestone .= '<span class="milestone-year">'; $milestone .= "'".substr($entries["timeline_event_time"], -2); $milestone .= '</span>'; $milestone .= '<span class="milestone-legend milestone-legend-right '; $milestone .= $entries["timeline_event_type"]; $milestone .= '">'; $milestone .= '<span class="event-title">'; $milestone .= $entries["timeline_event_title"]; $milestone .= '</span>'; $milestone .= '<span class="event-image"></span>'; $milestone .= '</span>'; } $milestone .= '</li>'; $counter++; print $milestone; } } ?> </ul> </div> </div>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 31, Position 2 = 36
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 97
Branch analysis from position: 37
2 jumps found. (Code = 77) Position 1 = 44, Position 2 = 96
Branch analysis from position: 44
2 jumps found. (Code = 78) Position 1 = 45, Position 2 = 96
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 71
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 92
Branch analysis from position: 92
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
Branch analysis from position: 71
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
Branch analysis from position: 96
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 96
Branch analysis from position: 97
Branch analysis from position: 36
Branch analysis from position: 28
Branch analysis from position: 24
Branch analysis from position: 16
Branch analysis from position: 12
filename:       /in/riC03
function name:  (null)
number of ops:  99
compiled vars:  !0 = $variables, !1 = $timeline_entries, !2 = $counter, !3 = $side, !4 = $milestone, !5 = $entries
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%24variables%5B%22timeline%22%5D+%3D+%27%7B%22intro%22%3A%22In+four+decades+of+business+MIKI+Travel+has+grown+tobecome+one+of+the+most+influential+private+travel+companies+in+the+world.%5Cr%5CnWith+over+36+offices+globally+we+offer+a+complete+travel+product.%22%2C%22image%22%3A%22http%3A%5C%2F%5C%2Fdev.miki.com%5C%2Fsites%5C%2FMikiTravelGlobal%5C%2Ffiles%5C%2Fjapan_bg.jpg%22%2C%22headline%22%3A%22Founded+in+1967%22%2C%22statement%22%3A%22Miki+Travel+was+founded+with+offices+in+London+and+Tokyo%2C+originally+to+operate+the+incoming+Japanese+liesure+market+into+Europe%22%2C%22timeline_entries%22%3A%7B%221%22%3A%7B%22timeline_event_time%22%3A%221967%22%2C%22timeline_event_title%22%3A%22Miki+Travel+was+founded+with+offices+in+London+and+Tokyo%2C+originally+to+operate+the+incoming+Japanese+liesure+market+into+Europe%22%2C%22timeline_event_type%22%3A%22location-event%22%7D%2C%222%22%3A%7B%22timeline_event_time%22%3A%221980%22%2C%22timeline_event_title%22%3A%22Went+on+to+sell+Europe+to+rest+of+the+world%22%2C%22timeline_event_type%22%3A%22business-event%22%7D%2C%223%22%3A%7B%22timeline_event_time%22%3A%221988%22%2C%22timeline_event_title%22%3A%22Opening+of+9+Further+offices+in+Europe+%2824+in+total%29.%22%2C%22timeline_event_type%22%3A%22location-event%22%7D%2C%224%22%3A%7B%22timeline_event_time%22%3A%221990%22%2C%22timeline_event_title%22%3A%22Extended+our+portfolio+of+products+to+destinations+in+Middle+East+and+Africa%2C+%2B+Online+systems+developed%22%2C%22timeline_event_type%22%3A%22business-event%22%7D%2C%225%22%3A%7B%22timeline_event_time%22%3A%221994%22%2C%22timeline_event_title%22%3A%22vLaunch+of+REX+-+Online+Hotel+Reservation+System%22%2C%22timeline_event_type%22%3A%22service-event%22%7D%7D%7D%27%3B%0A%0A%3Cdiv+class%3D%22row%22%3E%0A%09%3Cdiv+class%3D%22container%22%3E%0A%09%09%3Cul+class%3D%22timeline%22%3E%0A%09%09%09%3Cli+class%3D%22intro%22%3E%0A%09%09%09%09%3Cspan+class%3D%22milestone-legend+hidden%22%3E%3C%2Fspan%3E%0A%09%09%09%09%3Cspan+class%3D%22milestone-year%22%3E%0A%09%09%09%09%09%3Cul+class%3D%22intro-legend%22%3E%0A%09%09%09%09%09%09%3Cli+class%3D%22intro-image%22+style%3D%22background%3A+url%28%27'
   10     1        FETCH_DIM_R                                      ~6      !0, 'timeline'
          2        FETCH_DIM_R                                      ~7      ~6, 'image'
          3        ECHO                                                     ~7
          4        ECHO                                                     '%27%29%3B+background-size%3A+cover%3B%22%3E%0A%09%09%09%09%09%09%3C%2Fli%3E%0A%09%09%09%09%09%09%3Cli+class%3D%22intro-text%22%3E%0A%09%09%09%09%09%09%09%3Cp+class%3D%22intro-heading%22%3E%0A%09%09%09%09%09%09%09'
   15     5        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !0, 'timeline'
          6      > JMPZ_EX                                          ~8      ~8, ->12
          7    >   FETCH_DIM_R                                      ~9      !0, 'timeline'
          8        FETCH_DIM_R                                      ~10     ~9, 'headline'
          9        COUNT                                            ~11     ~10
         10        IS_NOT_EQUAL                                     ~12     ~11, 0
         11        BOOL                                             ~8      ~12
         12    > > JMPZ                                                     ~8, ->16
   16    13    >   FETCH_DIM_R                                      ~13     !0, 'timeline'
         14        FETCH_DIM_R                                      ~14     ~13, 'headline'
         15        ECHO                                                     ~14
   18    16    >   ECHO                                                     '%09%09%0A%09%09%09%09%09%09%09%3C%2Fp%3E%0A%09%09%09%09%09%09%09%3Cp+class%3D%22intro-statement%22%3E%0A%09%09%09%09%09%09%09'
   22    17        ISSET_ISEMPTY_DIM_OBJ                         0  ~15     !0, 'timeline'
         18      > JMPZ_EX                                          ~15     ~15, ->24
         19    >   FETCH_DIM_R                                      ~16     !0, 'timeline'
         20        FETCH_DIM_R                                      ~17     ~16, 'statement'
         21        COUNT                                            ~18     ~17
         22        IS_NOT_EQUAL                                     ~19     ~18, 0
         23        BOOL                                             ~15     ~19
         24    > > JMPZ                                                     ~15, ->28
   23    25    >   FETCH_DIM_R                                      ~20     !0, 'timeline'
         26        FETCH_DIM_R                                      ~21     ~20, 'statement'
         27        ECHO                                                     ~21
   25    28    >   ECHO                                                     '%09%0A%09%09%09%09%09%09%09%3C%2Fp%3E%0A%09%09%09%09%09%09%3C%2Fli%3E%0A%09%09%09%09%09%3C%2Ful%3E%0A%09%09%09%09%3C%2Fspan%3E%0A%09%09%09%09%3Cspan+class%3D%22milestone-legend+hidden%22%3E%3C%2Fspan%3E%0A%09%09%09%3C%2Fli%3E%0A%09%09%09'
   34    29        ISSET_ISEMPTY_DIM_OBJ                         0  ~22     !0, 'timeline'
         30      > JMPZ_EX                                          ~22     ~22, ->36
         31    >   FETCH_DIM_R                                      ~23     !0, 'timeline'
         32        FETCH_DIM_R                                      ~24     ~23, 'timeline_entries'
         33        COUNT                                            ~25     ~24
         34        IS_NOT_EQUAL                                     ~26     ~25, 0
         35        BOOL                                             ~22     ~26
         36    > > JMPZ                                                     ~22, ->97
   35    37    >   FETCH_DIM_R                                      ~27     !0, 'timeline'
         38        FETCH_DIM_R                                      ~28     ~27, 'timeline_entries'
         39        ASSIGN                                                   !1, ~28
   36    40        ASSIGN                                                   !2, 0
   37    41        ASSIGN                                                   !3, ''
   38    42        ASSIGN                                                   !4, ''
   41    43      > FE_RESET_R                                       $33     !1, ->96
         44    > > FE_FETCH_R                                               $33, !5, ->96
   42    45    >   ASSIGN_OP                                     8          !4, '%3Cli%3E'
   43    46        MOD                                              ~35     !2, 2
         47        IS_EQUAL                                                 ~35, 0
         48      > JMPZ                                                     ~36, ->71
   45    49    >   ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22milestone-legend+milestone-legend-left+'
   46    50        FETCH_DIM_R                                      ~38     !5, 'timeline_event_type'
         51        ASSIGN_OP                                     8          !4, ~38
   47    52        ASSIGN_OP                                     8          !4, '%22%3E'
   48    53        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22event-title%22%3E'
   49    54        FETCH_DIM_R                                      ~42     !5, 'timeline_event_title'
         55        ASSIGN_OP                                     8          !4, ~42
   50    56        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   51    57        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22event-image%22%3E%3C%2Fspan%3E'
   52    58        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   54    59        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22milestone-year%22%3E'
   55    60        INIT_FCALL                                               'substr'
         61        FETCH_DIM_R                                      ~48     !5, 'timeline_event_time'
         62        SEND_VAL                                                 ~48
         63        SEND_VAL                                                 -2
         64        DO_ICALL                                         $49     
         65        CONCAT                                           ~50     '%27', $49
         66        ASSIGN_OP                                     8          !4, ~50
   56    67        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   58    68        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22milestone-legend+milestone-legend-right%22+style%3D%22visibility%3A+hidden%3B%22%3E'
   59    69        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
         70      > JMP                                                      ->92
   62    71    >   ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22milestone-legend+milestone-legend-left%22+style%3D%22visibility%3A+hidden%3B%22%3E'
   63    72        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   65    73        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22milestone-year%22%3E'
   66    74        INIT_FCALL                                               'substr'
         75        FETCH_DIM_R                                      ~58     !5, 'timeline_event_time'
         76        SEND_VAL                                                 ~58
         77        SEND_VAL                                                 -2
         78        DO_ICALL                                         $59     
         79        CONCAT                                           ~60     '%27', $59
         80        ASSIGN_OP                                     8          !4, ~60
   67    81        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   69    82        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22milestone-legend+milestone-legend-right+'
   70    83        FETCH_DIM_R                                      ~64     !5, 'timeline_event_type'
         84        ASSIGN_OP                                     8          !4, ~64
   71    85        ASSIGN_OP                                     8          !4, '%22%3E'
   72    86        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22event-title%22%3E'
   73    87        FETCH_DIM_R                                      ~68     !5, 'timeline_event_title'
         88        ASSIGN_OP                                     8          !4, ~68
   74    89        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   75    90        ASSIGN_OP                                     8          !4, '%3Cspan+class%3D%22event-image%22%3E%3C%2Fspan%3E'
   76    91        ASSIGN_OP                                     8          !4, '%3C%2Fspan%3E'
   78    92    >   ASSIGN_OP                                     8          !4, '%3C%2Fli%3E'
   79    93        PRE_INC                                                  !2
   80    94        ECHO                                                     !4
   41    95      > JMP                                                      ->44
         96    >   FE_FREE                                                  $33
   83    97    >   ECHO                                                     '%09%09%0A%0A%09%09%3C%2Ful%3E%0A%09%3C%2Fdiv%3E%0A%3C%2Fdiv%3E'
   87    98      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1408 KiB | 15 Q