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 0: $winner = $family[0]; break; case 1: $winner = $family[1]; break; case 2: $winner = $family[2]; break; case 3: $winner = $family[3]; 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
6 jumps found. (Code = 187) Position 1 = 27, Position 2 = 30, Position 3 = 33, Position 4 = 36, Position 5 = 39, Position 6 = 18
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 39
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 27
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 30
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 33
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 36
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
Branch analysis from position: 36
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 27
filename:       /in/8LBC3
function name:  (null)
number of ops:  52
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, [ 0:->27, 1:->30, 2:->33, 3:->36, ], ->39
   14    18    >   IS_EQUAL                                                 !3, 0
         19      > JMPNZ                                                    ~14, ->27
   16    20    >   IS_EQUAL                                                 !3, 1
         21      > JMPNZ                                                    ~14, ->30
   18    22    >   IS_EQUAL                                                 !3, 2
         23      > JMPNZ                                                    ~14, ->33
   20    24    >   IS_EQUAL                                                 !3, 3
         25      > JMPNZ                                                    ~14, ->36
         26    > > JMP                                                      ->39
   14    27    >   FETCH_DIM_R                                      ~15     !1, 0
         28        ASSIGN                                                   !2, ~15
   15    29      > JMP                                                      ->40
   16    30    >   FETCH_DIM_R                                      ~17     !1, 1
         31        ASSIGN                                                   !2, ~17
   17    32      > JMP                                                      ->40
   18    33    >   FETCH_DIM_R                                      ~19     !1, 2
         34        ASSIGN                                                   !2, ~19
   19    35      > JMP                                                      ->40
   20    36    >   FETCH_DIM_R                                      ~21     !1, 3
         37        ASSIGN                                                   !2, ~21
   21    38      > JMP                                                      ->40
   22    39    >   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'
   25    40    >   INIT_FCALL                                               'strtoupper'
         41        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+......'
         42        DO_ICALL                                         $23     
         43        ECHO                                                     $23
   26    44        ASSIGN                                           ~24     !4, !3
         45        CONCAT                                           ~25     !2, ~24
         46        ECHO                                                     ~25
   27    47        SUB                                              ~26     !5, !0
         48        ECHO                                                     ~26
   28    49      > EXIT                                                     
   30    50*       ECHO                                                     '%3C%2Fhtml%3E'
         51*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.59 ms | 1400 KiB | 23 Q