3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wl = array( 'word2' => 'link2.com', 'word3' => 'link3.com', 'word4' => 'link4.com', 'word5' => 'link5.com' ); $newarr = array_keys($wl); shuffle($newarr); echo $newarr[0] . " - " . $wl[$newarr[0]];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5uDcf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $wl, !1 = $newarr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   10     5        INIT_FCALL                                               'shuffle'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
   12     8        FETCH_DIM_R                                      ~6      !1, 0
          9        CONCAT                                           ~7      ~6, '+-+'
         10        FETCH_DIM_R                                      ~8      !1, 0
         11        FETCH_DIM_R                                      ~9      !0, ~8
         12        CONCAT                                           ~10     ~7, ~9
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.96 ms | 939 KiB | 18 Q