3v4l.org

run code in 300+ PHP versions simultaneously
<?php // ---------------------------------------------------------------------------- // Opgave 12 $spellen = Array( 'Index' => Array( 'Spel' => 'Spel', 'Aantal Spelers' => 'Aantal Spelers', 'Vanaf' => 'Vanaf', 'Prijs' => 'Prijs' ), 'Catan' => Array( 'Spel' => 'Kolonisten van Catan', 'Aantal Spelers' => '3 à 4', 'Vanaf' => '10 jaar', 'Prijs' => '€ 36,95' ), 'Agricola' => Array( 'Spel' => 'Agricola', 'Aantal Spelers' => '2 à 4', 'Vanaf' => '10 jaar', 'Prijs' => '€ 28,45' ), 'Regenwormen' => Array( 'Spel' => 'Regenwormen', 'Aantal Spelers' => '2 à 4', 'Vanaf' => '6 jaar', 'Prijs' => '€ 24,95' ) ); echo "<table cellpadding='5' style='border:1px solid #999'>"; foreach($spellen as $spel) { echo "<tr>"; echo "<td>".$spel['Spel']."</td>"; echo "<td>".$spel['Aantal Spelers']."</td>"; echo "<td>".$spel['Vanaf']."</td>"; echo "<td>".$spel['Prijs']."</td>"; echo "</tr>"; } echo '</table><br>'; foreach($spellen as $spel) { if($spel['Spel'] != "Spel") echo "Het spel ".$spel['Spel']." kan gespeeld worden met ".$spel['Aantal Spelers']." spelers vanaf ".$spel['Vanaf']." en kost in de winkel ".$spel['Prijs'].".<br>"; }
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
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 44
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 44
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 43
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 43
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
Branch analysis from position: 23
filename:       /in/2LAme
function name:  (null)
number of ops:  46
compiled vars:  !0 = $spellen, !1 = $spel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
   37     1        ECHO                                                     '%3Ctable+cellpadding%3D%275%27+style%3D%27border%3A1px+solid+%23999%27%3E'
   38     2      > FE_RESET_R                                       $3      !0, ->23
          3    > > FE_FETCH_R                                               $3, !1, ->23
   39     4    >   ECHO                                                     '%3Ctr%3E'
   40     5        FETCH_DIM_R                                      ~4      !1, 'Spel'
          6        CONCAT                                           ~5      '%3Ctd%3E', ~4
          7        CONCAT                                           ~6      ~5, '%3C%2Ftd%3E'
          8        ECHO                                                     ~6
   41     9        FETCH_DIM_R                                      ~7      !1, 'Aantal+Spelers'
         10        CONCAT                                           ~8      '%3Ctd%3E', ~7
         11        CONCAT                                           ~9      ~8, '%3C%2Ftd%3E'
         12        ECHO                                                     ~9
   42    13        FETCH_DIM_R                                      ~10     !1, 'Vanaf'
         14        CONCAT                                           ~11     '%3Ctd%3E', ~10
         15        CONCAT                                           ~12     ~11, '%3C%2Ftd%3E'
         16        ECHO                                                     ~12
   43    17        FETCH_DIM_R                                      ~13     !1, 'Prijs'
         18        CONCAT                                           ~14     '%3Ctd%3E', ~13
         19        CONCAT                                           ~15     ~14, '%3C%2Ftd%3E'
         20        ECHO                                                     ~15
   44    21        ECHO                                                     '%3C%2Ftr%3E'
   38    22      > JMP                                                      ->3
         23    >   FE_FREE                                                  $3
   46    24        ECHO                                                     '%3C%2Ftable%3E%3Cbr%3E'
   48    25      > FE_RESET_R                                       $16     !0, ->44
         26    > > FE_FETCH_R                                               $16, !1, ->44
   49    27    >   FETCH_DIM_R                                      ~17     !1, 'Spel'
         28        IS_NOT_EQUAL                                             ~17, 'Spel'
         29      > JMPZ                                                     ~18, ->43
   50    30    >   FETCH_DIM_R                                      ~19     !1, 'Spel'
         31        CONCAT                                           ~20     'Het+spel+', ~19
         32        CONCAT                                           ~21     ~20, '+kan+gespeeld+worden+met+'
         33        FETCH_DIM_R                                      ~22     !1, 'Aantal+Spelers'
         34        CONCAT                                           ~23     ~21, ~22
         35        CONCAT                                           ~24     ~23, '+spelers+vanaf+'
         36        FETCH_DIM_R                                      ~25     !1, 'Vanaf'
         37        CONCAT                                           ~26     ~24, ~25
         38        CONCAT                                           ~27     ~26, '+en+kost+in+de+winkel+'
         39        FETCH_DIM_R                                      ~28     !1, 'Prijs'
         40        CONCAT                                           ~29     ~27, ~28
         41        CONCAT                                           ~30     ~29, '.%3Cbr%3E'
         42        ECHO                                                     ~30
   48    43    > > JMP                                                      ->26
         44    >   FE_FREE                                                  $16
   51    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.02 ms | 1399 KiB | 13 Q