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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.16 ms | 1387 KiB | 15 Q