3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getRandomName () { $Names = array("Wolf", "Gitta", "Len" , "Leana"); $NANA = array_rand($Names,1); echo $NANA[1]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7jC0
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   1

Function getrandomname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7jC0
function name:  getRandomName
number of ops:  9
compiled vars:  !0 = $Names, !1 = $NANA
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_rand'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        FETCH_DIM_R                                      ~5      !1, 1
          7        ECHO                                                     ~5
    9     8      > RETURN                                                   null

End of function getrandomname

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.74 ms | 1394 KiB | 15 Q