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 $time => $show) { echo '<h2>Monday</h2>'; foreach ($time as $timee) { echo $timee . ' - ' . $show;} }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/P3IAV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $schedule, !1 = $show, !2 = $time, !3 = $timee
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                                         $5      
          5        ASSIGN                                                   !0, $5
   24     6      > FE_RESET_R                                       $7      !0, ->18
          7    > > FE_FETCH_R                                       ~8      $7, !1, ->18
          8    >   ASSIGN                                                   !2, ~8
   25     9        ECHO                                                     '%3Ch2%3EMonday%3C%2Fh2%3E'
   26    10      > FE_RESET_R                                       $10     !2, ->16
         11    > > FE_FETCH_R                                               $10, !3, ->16
   27    12    >   CONCAT                                           ~11     !3, '+-+'
         13        CONCAT                                           ~12     ~11, !1
         14        ECHO                                                     ~12
   26    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $10
   24    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $7
   28    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.06 ms | 1396 KiB | 15 Q