3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kings= array("Clovis", "François premier", "Henri quatre", "Louis quatorze", "Louis seize"); switch("François premier") { case "$kings[0]": $text = "Le rois $kings[0] règna de $datesDebut[0] à $datesFin[0]."; break; case "$kings[1]": $text = "Le rois $kings[1] règna de $datesDebut[1] à $datesFin[1]."; break; case "$kings[2]": $text = "Le roi $kings[2] règna de $datesDebut[2] à $datesFin[2]."; break; case "$kings[3]": $text = "Le roi $kings[3] règna de $datesDebut[3] à $datesFin[3]."; break; case "$kings[4]": $text = "Le roi $kings[4] règna de $datesDebut[4] à $datesFin[4]."; break; default: $text = "Erreur! Vous devez choisir entre les rois:\n- $kings[0]\n- $kings[1]\n- $kings[2]\n- $kings[3]\n- $kings[4]"; } echo $text;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 22
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 34
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 46
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 58
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 70
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 82
Branch analysis from position: 82
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 70
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
filename:       /in/AWk19
function name:  (null)
number of ops:  100
compiled vars:  !0 = $kings, !1 = $text, !2 = $datesDebut, !3 = $datesFin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        FETCH_DIM_R                                      ~6      !0, 0
          2        CAST                                          6  ~7      ~6
          3        IS_EQUAL                                                 ~7, 'Fran%C3%A7ois+premier'
          4      > JMPNZ                                                    ~5, ->22
    9     5    >   FETCH_DIM_R                                      ~8      !0, 1
          6        CAST                                          6  ~9      ~8
          7        IS_EQUAL                                                 ~9, 'Fran%C3%A7ois+premier'
          8      > JMPNZ                                                    ~5, ->34
   12     9    >   FETCH_DIM_R                                      ~10     !0, 2
         10        CAST                                          6  ~11     ~10
         11        IS_EQUAL                                                 ~11, 'Fran%C3%A7ois+premier'
         12      > JMPNZ                                                    ~5, ->46
   15    13    >   FETCH_DIM_R                                      ~12     !0, 3
         14        CAST                                          6  ~13     ~12
         15        IS_EQUAL                                                 ~13, 'Fran%C3%A7ois+premier'
         16      > JMPNZ                                                    ~5, ->58
   18    17    >   FETCH_DIM_R                                      ~14     !0, 4
         18        CAST                                          6  ~15     ~14
         19        IS_EQUAL                                                 ~15, 'Fran%C3%A7ois+premier'
         20      > JMPNZ                                                    ~5, ->70
         21    > > JMP                                                      ->82
    7    22    >   ROPE_INIT                                     7  ~20     'Le+rois+'
         23        FETCH_DIM_R                                      ~16     !0, 0
         24        ROPE_ADD                                      1  ~20     ~20, ~16
         25        ROPE_ADD                                      2  ~20     ~20, '+r%C3%A8gna+de+'
         26        FETCH_DIM_R                                      ~17     !2, 0
         27        ROPE_ADD                                      3  ~20     ~20, ~17
         28        ROPE_ADD                                      4  ~20     ~20, '+%C3%A0+'
         29        FETCH_DIM_R                                      ~18     !3, 0
         30        ROPE_ADD                                      5  ~20     ~20, ~18
         31        ROPE_END                                      6  ~19     ~20, '.'
         32        ASSIGN                                                   !1, ~19
    8    33      > JMP                                                      ->98
   10    34    >   ROPE_INIT                                     7  ~29     'Le+rois+'
         35        FETCH_DIM_R                                      ~25     !0, 1
         36        ROPE_ADD                                      1  ~29     ~29, ~25
         37        ROPE_ADD                                      2  ~29     ~29, '+r%C3%A8gna+de+'
         38        FETCH_DIM_R                                      ~26     !2, 1
         39        ROPE_ADD                                      3  ~29     ~29, ~26
         40        ROPE_ADD                                      4  ~29     ~29, '+%C3%A0+'
         41        FETCH_DIM_R                                      ~27     !3, 1
         42        ROPE_ADD                                      5  ~29     ~29, ~27
         43        ROPE_END                                      6  ~28     ~29, '.'
         44        ASSIGN                                                   !1, ~28
   11    45      > JMP                                                      ->98
   13    46    >   ROPE_INIT                                     7  ~38     'Le+roi+'
         47        FETCH_DIM_R                                      ~34     !0, 2
         48        ROPE_ADD                                      1  ~38     ~38, ~34
         49        ROPE_ADD                                      2  ~38     ~38, '+r%C3%A8gna+de+'
         50        FETCH_DIM_R                                      ~35     !2, 2
         51        ROPE_ADD                                      3  ~38     ~38, ~35
         52        ROPE_ADD                                      4  ~38     ~38, '+%C3%A0+'
         53        FETCH_DIM_R                                      ~36     !3, 2
         54        ROPE_ADD                                      5  ~38     ~38, ~36
         55        ROPE_END                                      6  ~37     ~38, '.'
         56        ASSIGN                                                   !1, ~37
   14    57      > JMP                                                      ->98
   16    58    >   ROPE_INIT                                     7  ~47     'Le+roi+'
         59        FETCH_DIM_R                                      ~43     !0, 3
         60        ROPE_ADD                                      1  ~47     ~47, ~43
         61        ROPE_ADD                                      2  ~47     ~47, '+r%C3%A8gna+de+'
         62        FETCH_DIM_R                                      ~44     !2, 3
         63        ROPE_ADD                                      3  ~47     ~47, ~44
         64        ROPE_ADD                                      4  ~47     ~47, '+%C3%A0+'
         65        FETCH_DIM_R                                      ~45     !3, 3
         66        ROPE_ADD                                      5  ~47     ~47, ~45
         67        ROPE_END                                      6  ~46     ~47, '.'
         68        ASSIGN                                                   !1, ~46
   17    69      > JMP                                                      ->98
   19    70    >   ROPE_INIT                                     7  ~56     'Le+roi+'
         71        FETCH_DIM_R                                      ~52     !0, 4
         72        ROPE_ADD                                      1  ~56     ~56, ~52
         73        ROPE_ADD                                      2  ~56     ~56, '+r%C3%A8gna+de+'
         74        FETCH_DIM_R                                      ~53     !2, 4
         75        ROPE_ADD                                      3  ~56     ~56, ~53
         76        ROPE_ADD                                      4  ~56     ~56, '+%C3%A0+'
         77        FETCH_DIM_R                                      ~54     !3, 4
         78        ROPE_ADD                                      5  ~56     ~56, ~54
         79        ROPE_END                                      6  ~55     ~56, '.'
         80        ASSIGN                                                   !1, ~55
   20    81      > JMP                                                      ->98
   22    82    >   ROPE_INIT                                    10  ~67     'Erreur%21+Vous+devez+choisir+entre+les+rois%3A%0A-+'
         83        FETCH_DIM_R                                      ~61     !0, 0
         84        ROPE_ADD                                      1  ~67     ~67, ~61
         85        ROPE_ADD                                      2  ~67     ~67, '%0A-+'
         86        FETCH_DIM_R                                      ~62     !0, 1
         87        ROPE_ADD                                      3  ~67     ~67, ~62
         88        ROPE_ADD                                      4  ~67     ~67, '%0A-+'
         89        FETCH_DIM_R                                      ~63     !0, 2
         90        ROPE_ADD                                      5  ~67     ~67, ~63
         91        ROPE_ADD                                      6  ~67     ~67, '%0A-+'
         92        FETCH_DIM_R                                      ~64     !0, 3
         93        ROPE_ADD                                      7  ~67     ~67, ~64
         94        ROPE_ADD                                      8  ~67     ~67, '%0A-+'
         95        FETCH_DIM_R                                      ~65     !0, 4
         96        ROPE_END                                      9  ~66     ~67, ~65
         97        ASSIGN                                                   !1, ~66
   24    98    >   ECHO                                                     !1
         99      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.04 ms | 1403 KiB | 13 Q