3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "XXXXX"; $test = array($key => "test5"); for ($x = 0; $x < 500; $x++) { $key .= "X"; $value = "test" . strlen($key); $test[$key] = $value; } echo "<pre>"; print_r($test); echo "</pre>"; ?>
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 = 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/oijBV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $key, !1 = $test, !2 = $x, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'XXXXX'
    4     1        INIT_ARRAY                                       ~5      'test5', !0
          2        ASSIGN                                                   !1, ~5
    6     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->12
    7     5    >   ASSIGN_OP                                     8          !0, 'X'
    8     6        STRLEN                                           ~9      !0
          7        CONCAT                                           ~10     'test', ~9
          8        ASSIGN                                                   !3, ~10
    9     9        ASSIGN_DIM                                               !1, !0
         10        OP_DATA                                                  !3
    6    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, 500
         13      > JMPNZ                                                    ~14, ->5
   12    14    >   ECHO                                                     '%3Cpre%3E'
   13    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   14    18        ECHO                                                     '%3C%2Fpre%3E'
   16    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1395 KiB | 15 Q