3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cupContent = ['RAGE!!!', 'tea, my lord', 'SHIT!!!', 'coffee', 'vodka, my comrad']; echo "How about cup of {$cupContent[rand(0, 4)]}?";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mlo85
function name:  (null)
number of ops:  11
compiled vars:  !0 = $cupContent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ROPE_INIT                                     3  ~5      'How+about+cup+of+'
          2        INIT_FCALL                                               'rand'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 4
          5        DO_ICALL                                         $2      
          6        FETCH_DIM_R                                      ~3      !0, $2
          7        ROPE_ADD                                      1  ~5      ~5, ~3
          8        ROPE_END                                      2  ~4      ~5, '%3F'
          9        ECHO                                                     ~4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.22 ms | 1394 KiB | 15 Q