3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_list = 'a:5:{i:0;a:3:{s:2:"id";s:3:"191";s:4:"name";s:3:"Ali";s:5:"range";s:5:"today";}i:1;a:3:{s:2:"id";s:3:"190";s:4:"name";s:4:"John";s:5:"range";s:5:"today";}i:2;a:3:{s:2:"id";s:3:"189";s:4:"name";s:5:"peter";s:5:"range";s:12:"in last week";}i:3;a:3:{s:2:"id";s:3:"180";s:4:"name";s:3:"Ali";s:5:"range";s:12:"in last week";}i:4;a:3:{s:2:"id";s:3:"170";s:4:"name";s:4:"Jack";s:5:"range";s:12:"in last week";}}'; $array_list = unserialize($array_list); $new_list = array(); foreach( $array_list as $list ) $new_list[$list['range']][] = $list; ?> <div id="notification_box"> <?php foreach( $new_list as $item_name => $items ): ?> <div class= "cases"> <div class="title"><?php echo $item_name ?></div> <?php if( $items && is_array( $items ) ) { ?> <table> <?php foreach( $items as $item ): ?> <tr> <td><?php echo $item['id'] ?></td> <td><?php echo $item['name'] ?></td> </tr> <?php endforeach; ?> </table> <?php } ?> </div> <?php endforeach; ?> </div>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 40
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 40
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 38
Branch analysis from position: 25
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 36
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 36
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 36
Branch analysis from position: 38
Branch analysis from position: 24
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 13
filename:       /in/CHpm9
function name:  (null)
number of ops:  43
compiled vars:  !0 = $array_list, !1 = $new_list, !2 = $list, !3 = $items, !4 = $item_name, !5 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a%3A5%3A%7Bi%3A0%3Ba%3A3%3A%7Bs%3A2%3A%22id%22%3Bs%3A3%3A%22191%22%3Bs%3A4%3A%22name%22%3Bs%3A3%3A%22Ali%22%3Bs%3A5%3A%22range%22%3Bs%3A5%3A%22today%22%3B%7Di%3A1%3Ba%3A3%3A%7Bs%3A2%3A%22id%22%3Bs%3A3%3A%22190%22%3Bs%3A4%3A%22name%22%3Bs%3A4%3A%22John%22%3Bs%3A5%3A%22range%22%3Bs%3A5%3A%22today%22%3B%7Di%3A2%3Ba%3A3%3A%7Bs%3A2%3A%22id%22%3Bs%3A3%3A%22189%22%3Bs%3A4%3A%22name%22%3Bs%3A5%3A%22peter%22%3Bs%3A5%3A%22range%22%3Bs%3A12%3A%22in+last+week%22%3B%7Di%3A3%3Ba%3A3%3A%7Bs%3A2%3A%22id%22%3Bs%3A3%3A%22180%22%3Bs%3A4%3A%22name%22%3Bs%3A3%3A%22Ali%22%3Bs%3A5%3A%22range%22%3Bs%3A12%3A%22in+last+week%22%3B%7Di%3A4%3Ba%3A3%3A%7Bs%3A2%3A%22id%22%3Bs%3A3%3A%22170%22%3Bs%3A4%3A%22name%22%3Bs%3A4%3A%22Jack%22%3Bs%3A5%3A%22range%22%3Bs%3A12%3A%22in+last+week%22%3B%7D%7D'
    4     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !0, $7
    6     5        ASSIGN                                                   !1, <array>
    7     6      > FE_RESET_R                                       $10     !0, ->13
          7    > > FE_FETCH_R                                               $10, !2, ->13
    8     8    >   FETCH_DIM_R                                      ~11     !2, 'range'
          9        FETCH_DIM_W                                      $12     !1, ~11
         10        ASSIGN_DIM                                               $12
         11        OP_DATA                                                  !2
    7    12      > JMP                                                      ->7
         13    >   FE_FREE                                                  $10
   11    14        ECHO                                                     '%3Cdiv+id%3D%22notification_box%22%3E%0A+++'
   12    15      > FE_RESET_R                                       $14     !1, ->40
         16    > > FE_FETCH_R                                       ~15     $14, !3, ->40
         17    >   ASSIGN                                                   !4, ~15
         18        ECHO                                                     '+%0A++++%3Cdiv+class%3D+%22cases%22%3E%0A++++++++%3Cdiv+class%3D%22title%22%3E'
   14    19        ECHO                                                     !4
         20        ECHO                                                     '%3C%2Fdiv%3E%0A++++++++'
   16    21      > JMPZ_EX                                          ~17     !3, ->24
         22    >   TYPE_CHECK                                  128  ~18     !3
         23        BOOL                                             ~17     ~18
         24    > > JMPZ                                                     ~17, ->38
   19    25    >   ECHO                                                     '++++++++++++++%3Ctable%3E%0A+++++++++++++++++'
   20    26      > FE_RESET_R                                       $19     !3, ->36
         27    > > FE_FETCH_R                                               $19, !5, ->36
   21    28    >   ECHO                                                     '+++++++++++++++++%3Ctr%3E%0A+++++++++++++++++++%3Ctd%3E'
   22    29        FETCH_DIM_R                                      ~20     !5, 'id'
         30        ECHO                                                     ~20
         31        ECHO                                                     '%3C%2Ftd%3E%0A+++++++++++++++++++%3Ctd%3E'
   23    32        FETCH_DIM_R                                      ~21     !5, 'name'
         33        ECHO                                                     ~21
         34        ECHO                                                     '%3C%2Ftd%3E%0A+++++++++++++++++%3C%2Ftr%3E%0A%09%09%09%09+'
   20    35      > JMP                                                      ->27
         36    >   FE_FREE                                                  $19
   25    37        ECHO                                                     '+%0A++++++++++++++%3C%2Ftable%3E%0A+++++++++++++'
   31    38    >   ECHO                                                     '++++%3C%2Fdiv%3E%0A+++'
   12    39      > JMP                                                      ->16
         40    >   FE_FREE                                                  $14
   32    41        ECHO                                                     '+%0A%3C%2Fdiv%3E'
   33    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.86 ms | 1441 KiB | 14 Q