3v4l.org

run code in 300+ PHP versions simultaneously
<html> <p> <?php die("asssd"); // 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(1,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; ?> </p> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/2EZCI
function name:  (null)
number of ops:  53
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++++%3Cp%3E%0A%09'
    4     1      > EXIT                                                     'asssd'
    7     2*       ASSIGN                                                   !0, <array>
    9     3*       INIT_FCALL                                               'sort'
          4*       SEND_REF                                                 !0
          5*       DO_ICALL                                                 
   10     6*       INIT_FCALL                                               'rsort'
          7*       SEND_REF                                                 !0
          8*       DO_ICALL                                                 
   12     9*       ASSIGN                                                   !1, ''
   13    10*       INIT_FCALL                                               'rand'
         11*       SEND_VAL                                                 1
         12*       SEND_VAL                                                 5
         13*       DO_ICALL                                         $8      
         14*       ASSIGN                                                   !2, $8
   14    15*       SWITCH_LONG                                              !2, [ 1:->27, 2:->30, 3:->33, 4:->36, 5:->39, ], ->42
   15    16*       IS_EQUAL                                                 !2, 1
         17*       JMPNZ                                                    ~10, ->27
   17    18*       IS_EQUAL                                                 !2, 2
         19*       JMPNZ                                                    ~10, ->30
   19    20*       IS_EQUAL                                                 !2, 3
         21*       JMPNZ                                                    ~10, ->33
   21    22*       IS_EQUAL                                                 !2, 4
         23*       JMPNZ                                                    ~10, ->36
   23    24*       IS_EQUAL                                                 !2, 5
         25*       JMPNZ                                                    ~10, ->39
         26*       JMP                                                      ->42
   15    27*       FETCH_DIM_R                                      ~11     !0, 0
         28*       ASSIGN                                                   !1, ~11
   16    29*       JMP                                                      ->43
   17    30*       FETCH_DIM_R                                      ~13     !0, 1
         31*       ASSIGN                                                   !1, ~13
   18    32*       JMP                                                      ->43
   19    33*       FETCH_DIM_R                                      ~15     !0, 2
         34*       ASSIGN                                                   !1, ~15
   20    35*       JMP                                                      ->43
   21    36*       FETCH_DIM_R                                      ~17     !0, 3
         37*       ASSIGN                                                   !1, ~17
   22    38*       JMP                                                      ->43
   23    39*       FETCH_DIM_R                                      ~19     !0, 4
         40*       ASSIGN                                                   !1, ~19
   24    41*       JMP                                                      ->43
   25    42*       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'
   28    43*       INIT_FCALL                                               'strtoupper'
         44*       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+......'
         45*       DO_ICALL                                         $21     
         46*       ECHO                                                     $21
   29    47*       ASSIGN                                           ~22     !3, !2
         48*       CONCAT                                           ~23     !1, ~22
         49*       ECHO                                                     ~23
   30    50*       EXIT                                                     
   32    51*       ECHO                                                     '%09%3C%2Fp%3E%0A%3C%2Fhtml%3E'
   33    52*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.92 ms | 1392 KiB | 21 Q