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<2;$n++){ foreach ($a as $a2){ $test=$a2[thisIsVeryBigKeyName0].$a2[thisIsVeryBigKeyName1]; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 26
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 35
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 35
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 26
Branch analysis from position: 39
Branch analysis from position: 26
Branch analysis from position: 35
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
Branch analysis from position: 15
filename:       /in/vDGUv
function name:  (null)
number of ops:  40
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                                                      ->22
    7    15    >   FETCH_CONSTANT                                   ~10     'thisIsVeryBigKeyName0'
         16        INIT_ARRAY                                       ~11     0, ~10
         17        FETCH_CONSTANT                                   ~12     'thisIsVeryBigKeyName1'
         18        ADD_ARRAY_ELEMENT                                ~11     1, ~12
         19        ASSIGN_DIM                                               !0
         20        OP_DATA                                                  ~11
    6    21        PRE_INC                                                  !1
         22    >   IS_SMALLER                                               !1, 100000
         23      > JMPNZ                                                    ~14, ->15
    9    24    >   ASSIGN                                                   !1, 0
         25      > JMP                                                      ->37
   10    26    > > FE_RESET_R                                       $16     !0, ->35
         27    > > FE_FETCH_R                                               $16, !2, ->35
   11    28    >   FETCH_CONSTANT                                   ~17     'thisIsVeryBigKeyName0'
         29        FETCH_DIM_R                                      ~18     !2, ~17
         30        FETCH_CONSTANT                                   ~19     'thisIsVeryBigKeyName1'
         31        FETCH_DIM_R                                      ~20     !2, ~19
         32        CONCAT                                           ~21     ~18, ~20
         33        ASSIGN                                                   !3, ~21
   10    34      > JMP                                                      ->27
         35    >   FE_FREE                                                  $16
    9    36        PRE_INC                                                  !1
         37    >   IS_SMALLER                                               !1, 2
         38      > JMPNZ                                                    ~24, ->26
   13    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.12 ms | 1400 KiB | 17 Q