3v4l.org

run code in 300+ PHP versions simultaneously
<html> <?php // Create an array and push on the names // of your closest family and friends $family = array("mother", "father", "gmother", "gfather"); // Sort the list sort($family); rsort($family); // Randomly select a winner! $winner = ""; $win = rand(0,5); switch($win){ case 1: $winner = $family[0]; break; case 2: $winner = $family[1]; break; case 3: $winner = $family[2]; break; case 4: $winner = $family[3]; break; case 5: $winner = $family[4]; break; default: echo "Переможець не визначений!"; } // Print the winner's name in ALL CAPS echo strtoupper("І так, у нас є переможеце і це ......"); echo $winner.$random = $win; exit; ?> </html>
Finding entry points
Branch analysis from position: 0
7 jumps found. (Code = 187) Position 1 = 26, Position 2 = 29, Position 3 = 32, Position 4 = 35, Position 5 = 38, Position 6 = 41, Position 7 = 15
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 41
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 26
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 29
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 32
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 35
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 38
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
Branch analysis from position: 38
Branch analysis from position: 35
Branch analysis from position: 32
Branch analysis from position: 29
Branch analysis from position: 26
filename:       /in/OElM7
function name:  (null)
number of ops:  52
compiled vars:  !0 = $family, !1 = $winner, !2 = $win, !3 = $random
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%09'
    5     1        ASSIGN                                                   !0, <array>
    7     2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'rsort'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                                 
   10     8        ASSIGN                                                   !1, ''
   11     9        INIT_FCALL                                               'rand'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 5
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
   12    14      > SWITCH_LONG                                              !2, [ 1:->26, 2:->29, 3:->32, 4:->35, 5:->38, ], ->41
   13    15    >   IS_EQUAL                                                 !2, 1
         16      > JMPNZ                                                    ~10, ->26
   15    17    >   IS_EQUAL                                                 !2, 2
         18      > JMPNZ                                                    ~10, ->29
   17    19    >   IS_EQUAL                                                 !2, 3
         20      > JMPNZ                                                    ~10, ->32
   19    21    >   IS_EQUAL                                                 !2, 4
         22      > JMPNZ                                                    ~10, ->35
   21    23    >   IS_EQUAL                                                 !2, 5
         24      > JMPNZ                                                    ~10, ->38
         25    > > JMP                                                      ->41
   13    26    >   FETCH_DIM_R                                      ~11     !0, 0
         27        ASSIGN                                                   !1, ~11
   14    28      > JMP                                                      ->42
   15    29    >   FETCH_DIM_R                                      ~13     !0, 1
         30        ASSIGN                                                   !1, ~13
   16    31      > JMP                                                      ->42
   17    32    >   FETCH_DIM_R                                      ~15     !0, 2
         33        ASSIGN                                                   !1, ~15
   18    34      > JMP                                                      ->42
   19    35    >   FETCH_DIM_R                                      ~17     !0, 3
         36        ASSIGN                                                   !1, ~17
   20    37      > JMP                                                      ->42
   21    38    >   FETCH_DIM_R                                      ~19     !0, 4
         39        ASSIGN                                                   !1, ~19
   22    40      > JMP                                                      ->42
   23    41    >   ECHO                                                     '%D0%9F%D0%B5%D1%80%D0%B5%D0%BC%D0%BE%D0%B6%D0%B5%D1%86%D1%8C+%D0%BD%D0%B5+%D0%B2%D0%B8%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B9%21'
   26    42    >   INIT_FCALL                                               'strtoupper'
         43        SEND_VAL                                                 '%D0%86+%D1%82%D0%B0%D0%BA%2C+%D1%83+%D0%BD%D0%B0%D1%81+%D1%94+%D0%BF%D0%B5%D1%80%D0%B5%D0%BC%D0%BE%D0%B6%D0%B5%D1%86%D0%B5+%D1%96+%D1%86%D0%B5+......'
         44        DO_ICALL                                         $21     
         45        ECHO                                                     $21
   27    46        ASSIGN                                           ~22     !3, !2
         47        CONCAT                                           ~23     !1, ~22
         48        ECHO                                                     ~23
   28    49      > EXIT                                                     
   30    50*       ECHO                                                     '%3C%2Fhtml%3E'
         51*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1400 KiB | 21 Q