3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.enable_zend_sorting', 0); define("thisIsVeryBigKeyName0",0); define("thisIsVeryBigKeyName1",1); $a=array(); for ($n=0;$n<100000;$n++){ $a[]=array("thisIsVeryBigKeyName0"=>0,"thisIsVeryBigKeyName1"=>1); } for ($n=0;$n<10;$n++){ foreach ($a as $a2){ $test=$a2["thisIsVeryBigKeyName0"].$a2["thisIsVeryBigKeyName1"]; } }

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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 15
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 22
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 22
Branch analysis from position: 33
Branch analysis from position: 22
Branch analysis from position: 29
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 15
Branch analysis from position: 20
Branch analysis from position: 15
filename:       /in/JKcNf
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a, !1 = $n, !2 = $a2, !3 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'hhvm.enable_zend_sorting'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'thisIsVeryBigKeyName0'
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'thisIsVeryBigKeyName1'
         10        SEND_VAL                                                 1
         11        DO_ICALL                                                 
    5    12        ASSIGN                                                   !0, <array>
    6    13        ASSIGN                                                   !1, 0
         14      > JMP                                                      ->18
    7    15    >   ASSIGN_DIM                                               !0
         16        OP_DATA                                                  <array>
    6    17        PRE_INC                                                  !1
         18    >   IS_SMALLER                                               !1, 100000
         19      > JMPNZ                                                    ~11, ->15
    9    20    >   ASSIGN                                                   !1, 0
         21      > JMP                                                      ->31
   10    22    > > FE_RESET_R                                       $13     !0, ->29
         23    > > FE_FETCH_R                                               $13, !2, ->29
   11    24    >   FETCH_DIM_R                                      ~14     !2, 'thisIsVeryBigKeyName0'
         25        FETCH_DIM_R                                      ~15     !2, 'thisIsVeryBigKeyName1'
         26        CONCAT                                           ~16     ~14, ~15
         27        ASSIGN                                                   !3, ~16
   10    28      > JMP                                                      ->23
         29    >   FE_FREE                                                  $13
    9    30        PRE_INC                                                  !1
         31    >   IS_SMALLER                                               !1, 10
         32      > JMPNZ                                                    ~19, ->22
   13    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.83 ms | 1392 KiB | 17 Q