3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); for($i=0;$i<100000;$i++) { $array[implode('',array($i,'str'))] = $i; } echo sizeof($array); ?>
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 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/SKsLM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
    4     3    >   INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 ''
          5        INIT_ARRAY                                       ~4      !1
          6        ADD_ARRAY_ELEMENT                                ~4      'str'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN_DIM                                               !0, $5
         10        OP_DATA                                                  !1
    3    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 100000
         13      > JMPNZ                                                    ~8, ->3
    6    14    >   COUNT                                            ~9      !0
         15        ECHO                                                     ~9
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.65 ms | 1395 KiB | 15 Q