3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i=0;$i<1;$i++) $a['a'.$i] = array('a','b','c','d','e','f'); for ($i=0; $i<10000; $i++) { $merged = call_user_func_array('array_merge', $a); }
based on MjjmM
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
Branch analysis from position: 11
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/TA3Tv
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i, !1 = $a, !2 = $merged
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 0
         1      > JMP                                                      ->7
         2    >   CONCAT                                           ~4      'a', !0
         3        ASSIGN_DIM                                               !1, ~4
         4        OP_DATA                                                  <array>
         5        POST_INC                                         ~6      !0
         6        FREE                                                     ~6
         7    >   IS_SMALLER                                       ~7      !0, 1
         8      > JMPNZ                                                    ~7, ->2
   5     9    >   ASSIGN                                                   !0, 0
        10      > JMP                                                      ->17
   6    11    >   INIT_FCALL                                               'array_merge'
        12        UNKNOWN [119]                                            !1
        13        DO_FCALL                                      0  $9      
        14        ASSIGN                                                   !2, $9
   5    15        POST_INC                                         ~11     !0
        16        FREE                                                     ~11
        17    >   IS_SMALLER                                       ~12     !0, 10000
        18      > JMPNZ                                                    ~12, ->11
   7    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0