3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [ ['fine_type' => 'a:3:{i:0;s:2:"66";i:1;s:2:"13";i:2;s:1:"9";}'], ['fine_type' => 'a:3:{i:0;s:2:"99";i:1;s:2:"10";i:2;s:1:"1";}'], ]; $output = ""; foreach($result as $row) { $abc=''; $fine_types = unserialize($row['fine_type']); echo "<td>"; foreach ($fine_types as $fine_type) { $abc .="<div dir='rtl' lang='ar' class='fntype'> ".$fine_type.'</div>'; } echo "</td>"; $output .= ' <tr> <td style="text-align:right;">' . $abc . '</td></tr>'; } echo $output;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 17
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/vCQ5V
function name:  (null)
number of ops:  26
compiled vars:  !0 = $result, !1 = $output, !2 = $row, !3 = $abc, !4 = $fine_types, !5 = $fine_type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, ''
   10     2      > FE_RESET_R                                       $8      !0, ->23
          3    > > FE_FETCH_R                                               $8, !2, ->23
   12     4    >   ASSIGN                                                   !3, ''
   13     5        INIT_FCALL                                               'unserialize'
          6        FETCH_DIM_R                                      ~10     !2, 'fine_type'
          7        SEND_VAL                                                 ~10
          8        DO_ICALL                                         $11     
          9        ASSIGN                                                   !4, $11
   15    10        ECHO                                                     '%3Ctd%3E'
   16    11      > FE_RESET_R                                       $13     !4, ->17
         12    > > FE_FETCH_R                                               $13, !5, ->17
   17    13    >   CONCAT                                           ~14     '%3Cdiv+dir%3D%27rtl%27+lang%3D%27ar%27+class%3D%27fntype%27%3E+', !5
         14        CONCAT                                           ~15     ~14, '%3C%2Fdiv%3E'
         15        ASSIGN_OP                                     8          !3, ~15
   16    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $13
   19    18        ECHO                                                     '%3C%2Ftd%3E'
   23    19        CONCAT                                           ~17     '%0A++++%3Ctr%3E%0A++++++++++++%3Ctd+style%3D%22text-align%3Aright%3B%22%3E', !3
         20        CONCAT                                           ~18     ~17, '%3C%2Ftd%3E%3C%2Ftr%3E'
         21        ASSIGN_OP                                     8          !1, ~18
   10    22      > JMP                                                      ->3
         23    >   FE_FREE                                                  $8
   25    24        ECHO                                                     !1
   26    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.89 ms | 998 KiB | 14 Q