3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_ = array(); for($i=0;$i<10;$i++)$_[$s?:(key($_)+1)] = "lol"; var_dump($_);
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/VkL3S
function name:  (null)
number of ops:  18
compiled vars:  !0 = $_, !1 = $i, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
          3    >   JMP_SET                                          ~5      !2, ->9
          4        INIT_FCALL                                               'key'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ADD                                              ~7      $6, 1
          8        QM_ASSIGN                                        ~5      ~7
          9        ASSIGN_DIM                                               !0, ~5
         10        OP_DATA                                                  'lol'
         11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 10
         13      > JMPNZ                                                    ~10, ->3
    5    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.74 ms | 1395 KiB | 17 Q