3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Griseldita"; $total = strlen ($name); $alea = rand (0, $total - 1); print $name [$alea]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EcZRo
function name:  (null)
number of ops:  12
compiled vars:  !0 = $name, !1 = $total, !2 = $alea
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Griseldita'
    3     1        STRLEN                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    4     3        INIT_FCALL                                               'rand'
          4        SEND_VAL                                                 0
          5        SUB                                              ~6      !1, 1
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    5     9        FETCH_DIM_R                                      ~9      !0, !2
         10        ECHO                                                     ~9
    6    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1385 KiB | 15 Q