3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array("first val","second", "and so on ...")[rand(0,2)]."\n"; echo array("first val","second", "and so on ...")[rand(0,2)]."\n"; echo array("first val","second", "and so on ...")[rand(0,2)]."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GfmhD
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 2
          3        DO_ICALL                                         $0      
          4        FETCH_DIM_R                                      ~1      <array>, $0
          5        CONCAT                                           ~2      ~1, '%0A'
          6        ECHO                                                     ~2
    4     7        INIT_FCALL                                               'rand'
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 2
         10        DO_ICALL                                         $3      
         11        FETCH_DIM_R                                      ~4      <array>, $3
         12        CONCAT                                           ~5      ~4, '%0A'
         13        ECHO                                                     ~5
    5    14        INIT_FCALL                                               'rand'
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $6      
         18        FETCH_DIM_R                                      ~7      <array>, $6
         19        CONCAT                                           ~8      ~7, '%0A'
         20        ECHO                                                     ~8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1395 KiB | 15 Q