3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.enable_zend_sorting', 0); define("t0",0); define("t1",1); $a=array(); for ($n=0;$n<100000;$n++){ $a[]=array(t0=>0,t1=>1); } foreach ($a as $a2){ $test=$a2[t0].$a2[t1]; }
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
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 33
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 33
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
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/a1bGP
function name:  (null)
number of ops:  35
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                                                 't0'
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 't1'
         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     't0'
         16        INIT_ARRAY                                       ~11     0, ~10
         17        FETCH_CONSTANT                                   ~12     't1'
         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    > > FE_RESET_R                                       $15     !0, ->33
         25    > > FE_FETCH_R                                               $15, !2, ->33
   10    26    >   FETCH_CONSTANT                                   ~16     't0'
         27        FETCH_DIM_R                                      ~17     !2, ~16
         28        FETCH_CONSTANT                                   ~18     't1'
         29        FETCH_DIM_R                                      ~19     !2, ~18
         30        CONCAT                                           ~20     ~17, ~19
         31        ASSIGN                                                   !3, ~20
    9    32      > JMP                                                      ->25
         33    >   FE_FREE                                                  $15
   11    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1400 KiB | 17 Q