3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = '{"Saturday" : { "00-06" : "Non-stop", "19-22" : "Saturday Night Club Mix" }, "Sunday" : { "00-04" : "Party cool down", "04-24" : "Non-stop" }}'; //$days[] = json_decode($array, TRUE); /*foreach($days as $day=>$time) { echo '<div class="day">'; echo '<h2>' . $day . '</h2>'; echo '<ul>'; foreach($time as $timee=>$item) { echo '<li>'; echo '<span class="time">' . $timee . '</span>&nbsp;'; echo $item; echo '</li>'; } echo '</ul>'; echo '</div>'; }*/ foreach ($array as $key => $val) { if(is_array($val)) { echo "$key:\n"; } else { echo "$key => $val\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/anKFH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%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%7D'
   30     1      > FE_RESET_R                                       $4      !0, ->16
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->16
          3    >   ASSIGN                                                   !2, ~5
   31     4        TYPE_CHECK                                  128          !1
          5      > JMPZ                                                     ~7, ->10
   32     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~8      !2, '%3A%0A'
          8        ECHO                                                     ~8
          9      > JMP                                                      ->15
   34    10    >   ROPE_INIT                                     4  ~10     !2
         11        ROPE_ADD                                      1  ~10     ~10, '+%3D%3E+'
         12        ROPE_ADD                                      2  ~10     ~10, !1
         13        ROPE_END                                      3  ~9      ~10, '%0A'
         14        ECHO                                                     ~9
   30    15    > > JMP                                                      ->2
         16    >   FE_FREE                                                  $4
   36    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.93 ms | 1398 KiB | 13 Q