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 (json_decode($array, true) 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 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/icpP6
function name:  (null)
number of ops:  22
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        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->20
          6    > > FE_FETCH_R                                       ~6      $5, !1, ->20
          7    >   ASSIGN                                                   !2, ~6
   31     8        TYPE_CHECK                                  128          !1
          9      > JMPZ                                                     ~8, ->14
   32    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~9      !2, '%3A%0A'
         12        ECHO                                                     ~9
         13      > JMP                                                      ->19
   34    14    >   ROPE_INIT                                     4  ~11     !2
         15        ROPE_ADD                                      1  ~11     ~11, '+%3D%3E+'
         16        ROPE_ADD                                      2  ~11     ~11, !1
         17        ROPE_END                                      3  ~10     ~11, '%0A'
         18        ECHO                                                     ~10
   30    19    > > JMP                                                      ->6
         20    >   FE_FREE                                                  $5
   36    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1396 KiB | 15 Q