3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links = array(array('url' => 'http://google.com', 'name'=>'google'), array('url' => 'http://hotmail.com', 'name' => 'hotmail'), array('url' => 'http://hawkee.com', 'name' => 'Hawkee')); $num = array_rand($links); $item = $links[$num]; printf('<a href="%s" title="%s">%s</a>', $item['url'], $item['name'], $item['name']); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vhm4W
function name:  (null)
number of ops:  17
compiled vars:  !0 = $links, !1 = $num, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_rand'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        FETCH_DIM_R                                      ~6      !0, !1
          6        ASSIGN                                                   !2, ~6
    8     7        INIT_FCALL                                               'printf'
          8        SEND_VAL                                                 '%3Ca+href%3D%22%25s%22+title%3D%22%25s%22%3E%25s%3C%2Fa%3E'
          9        FETCH_DIM_R                                      ~8      !2, 'url'
         10        SEND_VAL                                                 ~8
         11        FETCH_DIM_R                                      ~9      !2, 'name'
         12        SEND_VAL                                                 ~9
         13        FETCH_DIM_R                                      ~10     !2, 'name'
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.63 ms | 1394 KiB | 17 Q