3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array_fill(0, 10000, ''); $b = &$a; for ($i = 0; $i < 10000; $i++) { array_key_exists($i, $a); }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/hD12s
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10000
          3        SEND_VAL                                                 ''
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    3     6        ASSIGN_REF                                               !1, !0
    4     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->12
    5     9    >   ARRAY_KEY_EXISTS                                 ~7      !2, !0
         10        FREE                                                     ~7
    4    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, 10000
         13      > JMPNZ                                                    ~9, ->9
    6    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1394 KiB | 15 Q