3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.46 ms | 1399 KiB | 17 Q