3v4l.org

run code in 300+ PHP versions simultaneously
<html> <?php $time = microtime(); // 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,3); 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; echo $microtime - $time; exit; ?> </html>
Finding entry points
Branch analysis from position: 0
7 jumps found. (Code = 187) Position 1 = 29, Position 2 = 32, Position 3 = 35, Position 4 = 38, Position 5 = 41, Position 6 = 44, Position 7 = 18
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 44
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 29
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 32
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 35
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 38
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 41
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
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
filename:       /in/uB53h
function name:  (null)
number of ops:  57
compiled vars:  !0 = $time, !1 = $family, !2 = $winner, !3 = $win, !4 = $random, !5 = $microtime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%09'
    3     1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !0, $6
    6     4        ASSIGN                                                   !1, <array>
    8     5        INIT_FCALL                                               'sort'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'rsort'
          9        SEND_REF                                                 !1
         10        DO_ICALL                                                 
   11    11        ASSIGN                                                   !2, ''
   12    12        INIT_FCALL                                               'rand'
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 3
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !3, $12
   13    17      > SWITCH_LONG                                              !3, [ 1:->29, 2:->32, 3:->35, 4:->38, 5:->41, ], ->44
   14    18    >   IS_EQUAL                                                 !3, 1
         19      > JMPNZ                                                    ~14, ->29
   16    20    >   IS_EQUAL                                                 !3, 2
         21      > JMPNZ                                                    ~14, ->32
   18    22    >   IS_EQUAL                                                 !3, 3
         23      > JMPNZ                                                    ~14, ->35
   20    24    >   IS_EQUAL                                                 !3, 4
         25      > JMPNZ                                                    ~14, ->38
   22    26    >   IS_EQUAL                                                 !3, 5
         27      > JMPNZ                                                    ~14, ->41
         28    > > JMP                                                      ->44
   14    29    >   FETCH_DIM_R                                      ~15     !1, 0
         30        ASSIGN                                                   !2, ~15
   15    31      > JMP                                                      ->45
   16    32    >   FETCH_DIM_R                                      ~17     !1, 1
         33        ASSIGN                                                   !2, ~17
   17    34      > JMP                                                      ->45
   18    35    >   FETCH_DIM_R                                      ~19     !1, 2
         36        ASSIGN                                                   !2, ~19
   19    37      > JMP                                                      ->45
   20    38    >   FETCH_DIM_R                                      ~21     !1, 3
         39        ASSIGN                                                   !2, ~21
   21    40      > JMP                                                      ->45
   22    41    >   FETCH_DIM_R                                      ~23     !1, 4
         42        ASSIGN                                                   !2, ~23
   23    43      > JMP                                                      ->45
   24    44    >   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'
   27    45    >   INIT_FCALL                                               'strtoupper'
         46        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+......'
         47        DO_ICALL                                         $25     
         48        ECHO                                                     $25
   28    49        ASSIGN                                           ~26     !4, !3
         50        CONCAT                                           ~27     !2, ~26
         51        ECHO                                                     ~27
   29    52        SUB                                              ~28     !5, !0
         53        ECHO                                                     ~28
   30    54      > EXIT                                                     
   32    55*       ECHO                                                     '%3C%2Fhtml%3E'
         56*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.15 ms | 1400 KiB | 23 Q