3v4l.org

run code in 500+ PHP versions simultaneously
<?php $product = array('a','b','c','d'); echo '<table border="1">'; echo "<tr><th>Product 1</th><th>Product 2</th><th>Similarity</th></tr>\n"; Foreach($product as $key => $a){ Foreach(array_slice($product, $key+1) as $b){ echo '<tr><td>'.$a.'</td><td>'.$b."</td></tr>\n"; } } echo '</table>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/fdp2e
function name:  (null)
number of ops:  24
compiled vars:  !0 = $product, !1 = $a, !2 = $key, !3 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ECHO                                                         '%3Ctable+border%3D%221%22%3E'
    5     2        ECHO                                                         '%3Ctr%3E%3Cth%3EProduct+1%3C%2Fth%3E%3Cth%3EProduct+2%3C%2Fth%3E%3Cth%3ESimilarity%3C%2Fth%3E%3C%2Ftr%3E%0A'
    7     3      > FE_RESET_R                                           $5      !0, ->21
          4    > > FE_FETCH_R                                           ~6      $5, !1, ->21
          5    >   ASSIGN                                                       !2, ~6
    8     6        INIT_FCALL                                                   'array_slice'
          7        SEND_VAR                                                     !0
          8        ADD                                                  ~8      !2, 1
          9        SEND_VAL                                                     ~8
         10        DO_ICALL                                             $9      
         11      > FE_RESET_R                                           $10     $9, ->19
         12    > > FE_FETCH_R                                                   $10, !3, ->19
    9    13    >   CONCAT                                               ~11     '%3Ctr%3E%3Ctd%3E', !1
         14        CONCAT                                               ~12     ~11, '%3C%2Ftd%3E%3Ctd%3E'
         15        CONCAT                                               ~13     ~12, !3
         16        CONCAT                                               ~14     ~13, '%3C%2Ftd%3E%3C%2Ftr%3E%0A'
         17        ECHO                                                         ~14
    8    18      > JMP                                                          ->12
         19    >   FE_FREE                                                      $10
    7    20      > JMP                                                          ->4
         21    >   FE_FREE                                                      $5
   12    22        ECHO                                                         '%3C%2Ftable%3E'
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.3 ms | 2112 KiB | 14 Q