3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.23 ms | 1400 KiB | 21 Q