3v4l.org

run code in 300+ PHP versions simultaneously
<?php $schedule = '{ "Monday" : { "00-06" : "Non-stop", "06-08" : "Wake up" }, "Friday" : { "00-06" : "Non-stop", "18-21" : "Friday Night Party" }, "Saturday" : { "00-06" : "Non-stop", "19-22" : "Saturday Night Club Mix" }, "Sunday" : { "00-04" : "Party cool down", "04-24" : "Non-stop" } } '; $schedule = json_decode($schedule, true); foreach ($schedule as $key=>$val) { echo '<div class="day"><h2>' . $key . "</h2><ul>\n"; foreach ($val as $time=>$show) { echo '<li>' . $time . ' - ' . $show . "</li>\n"; } echo '</ul></div>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 24
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 21
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/UMHU7
function name:  (null)
number of ops:  26
compiled vars:  !0 = $schedule, !1 = $val, !2 = $key, !3 = $show, !4 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22Monday%22+%3A+%7B%0A%09%09%2200-06%22%09%3A%09%09%22Non-stop%22%2C%0A%09%09%2206-08%22%09%3A%09%09%22Wake+up%22%0A++++%7D%2C%0A++++%0A%09%22Friday%22+%3A+%7B%0A%09%09%2200-06%22%09%3A%09%09%22Non-stop%22%2C%0A%09%09%2218-21%22%09%09%3A%09%09%22Friday+Night+Party%22%0A++++%7D%2C%0A%09%22Saturday%22+%3A+%7B%0A%09%09%2200-06%22%09%3A%09%09%22Non-stop%22%2C%0A%09%09%2219-22%22%09%3A%09%09%22Saturday+Night+Club+Mix%22%0A++++%7D%2C%0A%09%22Sunday%22+%3A+%7B%0A%09%09%2200-04%22%09%3A%09%09%22Party+cool+down%22%2C%0A%09%09%2204-24%22%09%3A%09%09%22Non-stop%22%0A++++%7D%0A%7D%0A'
   23     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !0, $6
   26     6      > FE_RESET_R                                       $8      !0, ->24
          7    > > FE_FETCH_R                                       ~9      $8, !1, ->24
          8    >   ASSIGN                                                   !2, ~9
   27     9        CONCAT                                           ~11     '%3Cdiv+class%3D%22day%22%3E%3Ch2%3E', !2
         10        CONCAT                                           ~12     ~11, '%3C%2Fh2%3E%3Cul%3E%0A'
         11        ECHO                                                     ~12
   28    12      > FE_RESET_R                                       $13     !1, ->21
         13    > > FE_FETCH_R                                       ~14     $13, !3, ->21
         14    >   ASSIGN                                                   !4, ~14
   29    15        CONCAT                                           ~16     '%3Cli%3E', !4
         16        CONCAT                                           ~17     ~16, '+-+'
         17        CONCAT                                           ~18     ~17, !3
         18        CONCAT                                           ~19     ~18, '%3C%2Fli%3E%0A'
         19        ECHO                                                     ~19
   28    20      > JMP                                                      ->13
         21    >   FE_FREE                                                  $13
   31    22        ECHO                                                     '%3C%2Ful%3E%3C%2Fdiv%3E'
   26    23      > JMP                                                      ->7
         24    >   FE_FREE                                                  $8
   32    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
269.42 ms | 1396 KiB | 16 Q