3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=1;$i<1000;$i++){ $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/8YK1H
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_DIM                                               !1
          3        OP_DATA                                                  'lorem_'
    5     4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  !0
    6     6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  '_ipsum'
    7     8        INIT_FCALL                                               'join'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    9    16        UNSET_CV                                                 !1
    3    17        PRE_INC                                                  !0
         18    >   IS_SMALLER                                               !0, 1000
         19      > JMPNZ                                                    ~10, ->2
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.14 ms | 1399 KiB | 17 Q