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("І так, у нас є переможеце і це ......".$winner."<br>"); 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/MO5vd
function name:  (null)
number of ops:  53
compiled vars:  !0 = $time, !1 = $family, !2 = $winner, !3 = $win
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                                         $4      
          3        ASSIGN                                                   !0, $4
    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                                         $10     
         16        ASSIGN                                                   !3, $10
   13    17      > SWITCH_LONG                                              !3, [ 0:->27, 1:->30, 2:->33, 3:->36, ], ->39
   14    18    >   IS_EQUAL                                                 !3, 0
         19      > JMPNZ                                                    ~12, ->27
   16    20    >   IS_EQUAL                                                 !3, 1
         21      > JMPNZ                                                    ~12, ->30
   18    22    >   IS_EQUAL                                                 !3, 2
         23      > JMPNZ                                                    ~12, ->33
   20    24    >   IS_EQUAL                                                 !3, 3
         25      > JMPNZ                                                    ~12, ->36
         26    > > JMP                                                      ->39
   14    27    >   FETCH_DIM_R                                      ~13     !1, 0
         28        ASSIGN                                                   !2, ~13
   15    29      > JMP                                                      ->40
   16    30    >   FETCH_DIM_R                                      ~15     !1, 1
         31        ASSIGN                                                   !2, ~15
   17    32      > JMP                                                      ->40
   18    33    >   FETCH_DIM_R                                      ~17     !1, 2
         34        ASSIGN                                                   !2, ~17
   19    35      > JMP                                                      ->40
   20    36    >   FETCH_DIM_R                                      ~19     !1, 3
         37        ASSIGN                                                   !2, ~19
   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        CONCAT                                           ~21     '%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+......', !2
         42        CONCAT                                           ~22     ~21, '%3Cbr%3E'
         43        SEND_VAL                                                 ~22
         44        DO_ICALL                                         $23     
         45        ECHO                                                     $23
   27    46        INIT_FCALL                                               'microtime'
         47        DO_ICALL                                         $24     
         48        SUB                                              ~25     $24, !0
         49        ECHO                                                     ~25
   28    50      > EXIT                                                     
   30    51*       ECHO                                                     '%3C%2Fhtml%3E'
         52*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1400 KiB | 23 Q