3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ncarts = 3; $quantidade_sorteada = 3; $numeros_cartela[1] = array(1, 3); $numeros_cartela[2] = array (5, 7); $numeros_cartela[3] = array(9, 11); $sorted[1] = 1; $sorted[2] = 3; $sorted[3] = 5; for ($p=1; $p<=$ncarts; $p++) { $contador_pontos_cartela[$p] = 0; for ($g=1; $g<=$quantidade_sorteada; $g++) { foreach ($numeros_cartela[$p] as $w) { echo "Valor de w: {$w} <br>"; echo "Valor de sorted: {$sorted[$g]} <br>"; if ($w == $sorted[$g]){ echo "truue"; $contador_pontos_cartela[$p] += 1; } } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 16
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 20
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 16
Branch analysis from position: 46
Branch analysis from position: 16
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 39
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 39
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 38
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 38
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 20
Branch analysis from position: 43
Branch analysis from position: 20
Branch analysis from position: 39
filename:       /in/gLkBM
function name:  (null)
number of ops:  47
compiled vars:  !0 = $ncarts, !1 = $quantidade_sorteada, !2 = $numeros_cartela, !3 = $sorted, !4 = $p, !5 = $contador_pontos_cartela, !6 = $g, !7 = $w
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    4     1        ASSIGN                                                   !1, 3
    5     2        ASSIGN_DIM                                               !2, 1
          3        OP_DATA                                                  <array>
    6     4        ASSIGN_DIM                                               !2, 2
          5        OP_DATA                                                  <array>
    7     6        ASSIGN_DIM                                               !2, 3
          7        OP_DATA                                                  <array>
    8     8        ASSIGN_DIM                                               !3, 1
          9        OP_DATA                                                  1
    9    10        ASSIGN_DIM                                               !3, 2
         11        OP_DATA                                                  3
   10    12        ASSIGN_DIM                                               !3, 3
         13        OP_DATA                                                  5
   12    14        ASSIGN                                                   !4, 1
         15      > JMP                                                      ->44
   13    16    >   ASSIGN_DIM                                               !5, !4
         17        OP_DATA                                                  0
   14    18        ASSIGN                                                   !6, 1
         19      > JMP                                                      ->41
   15    20    >   FETCH_DIM_R                                      ~19     !2, !4
         21      > FE_RESET_R                                       $20     ~19, ->39
         22    > > FE_FETCH_R                                               $20, !7, ->39
   16    23    >   ROPE_INIT                                     3  ~22     'Valor+de+w%3A+'
         24        ROPE_ADD                                      1  ~22     ~22, !7
         25        ROPE_END                                      2  ~21     ~22, '+%3Cbr%3E'
         26        ECHO                                                     ~21
   17    27        ROPE_INIT                                     3  ~26     'Valor+de+sorted%3A+'
         28        FETCH_DIM_R                                      ~24     !3, !6
         29        ROPE_ADD                                      1  ~26     ~26, ~24
         30        ROPE_END                                      2  ~25     ~26, '+%3Cbr%3E'
         31        ECHO                                                     ~25
   18    32        FETCH_DIM_R                                      ~28     !3, !6
         33        IS_EQUAL                                                 !7, ~28
         34      > JMPZ                                                     ~29, ->38
   19    35    >   ECHO                                                     'truue'
   20    36        ASSIGN_DIM_OP                +=               1          !5, !4
         37        OP_DATA                                                  1
   15    38    > > JMP                                                      ->22
         39    >   FE_FREE                                                  $20
   14    40        PRE_INC                                                  !6
         41    >   IS_SMALLER_OR_EQUAL                                      !6, !1
         42      > JMPNZ                                                    ~32, ->20
   12    43    >   PRE_INC                                                  !4
         44    >   IS_SMALLER_OR_EQUAL                                      !4, !0
         45      > JMPNZ                                                    ~34, ->16
   24    46    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.06 ms | 1390 KiB | 13 Q