3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1, 1000000); $range = array_rand($range, count($range)); foreach ($range as $r) { $s = &$r; $s++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/OB3l7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $range, !1 = $r, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1000000
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'array_rand'
          6        SEND_VAR                                                 !0
          7        COUNT                                            ~5      !0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
    5    11      > FE_RESET_R                                       $8      !0, ->16
         12    > > FE_FETCH_R                                               $8, !1, ->16
    6    13    >   ASSIGN_REF                                               !2, !1
    7    14        PRE_INC                                                  !2
    5    15      > JMP                                                      ->12
         16    >   FE_FREE                                                  $8
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1395 KiB | 17 Q