3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1, 10000); $range = array_rand($range, count($range)); foreach ($range as &$r) { $s = &$r; $s++; $s *= $s % 2; $s = array_sum($range) % count($range); }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
2 jumps found. (Code = 126) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/50UMD
function name:  (null)
number of ops:  26
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                                                 10000
          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_RW                                      $8      !0, ->24
         12    > > FE_FETCH_RW                                              $8, !1, ->24
    6    13    >   ASSIGN_REF                                               !2, !1
    7    14        PRE_INC                                                  !2
    8    15        MOD                                              ~11     !2, 2
         16        ASSIGN_OP                                     3          !2, ~11
    9    17        INIT_FCALL                                               'array_sum'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $13     
         20        COUNT                                            ~14     !0
         21        MOD                                              ~15     $13, ~14
         22        ASSIGN                                                   !2, ~15
    5    23      > JMP                                                      ->12
         24    >   FE_FREE                                                  $8
   10    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1461 KiB | 16 Q