3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range= range('A','Z'); foreach (array_rand($range,2) as $key) { echo $range[$key] . '<br/>' . PHP_EOL; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/A9Uh7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $range, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 'A'
          2        SEND_VAL                                                 'Z'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'array_rand'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $4      
          9      > FE_RESET_R                                       $5      $4, ->16
         10    > > FE_FETCH_R                                               $5, !1, ->16
    5    11    >   FETCH_DIM_R                                      ~6      !0, !1
         12        CONCAT                                           ~7      ~6, '%3Cbr%2F%3E'
         13        CONCAT                                           ~8      ~7, '%0A'
         14        ECHO                                                     ~8
    4    15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $5
    7    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1395 KiB | 17 Q