3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 900; $i++) { if ($i != 899) $a['asd'.$i] = "$i"; else for ($j = 0; $j < 900; $j++) $a['asd'.$i]['qwe'.$j] = "$i - $j"; } $a = http_build_query($a); parse_str($a,$b); $b = http_build_query($b); echo count(explode('&',$a))."\n"; echo count(explode('&',$b))."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 3
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 3
Branch analysis from position: 26
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
Branch analysis from position: 12
filename:       /in/87895
function name:  (null)
number of ops:  53
compiled vars:  !0 = $a, !1 = $i, !2 = $j, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->24
    5     3    >   IS_NOT_EQUAL                                             !1, 899
          4      > JMPZ                                                     ~6, ->10
          5    >   CONCAT                                           ~7      'asd', !1
          6        CAST                                          6  ~9      !1
          7        ASSIGN_DIM                                               !0, ~7
          8        OP_DATA                                                  ~9
          9      > JMP                                                      ->23
    6    10    >   ASSIGN                                                   !2, 0
         11      > JMP                                                      ->21
    7    12    >   CONCAT                                           ~11     'asd', !1
         13        CONCAT                                           ~13     'qwe', !2
         14        ROPE_INIT                                     3  ~16     !1
         15        ROPE_ADD                                      1  ~16     ~16, '+-+'
         16        ROPE_END                                      2  ~15     ~16, !2
         17        FETCH_DIM_W                                      $12     !0, ~11
         18        ASSIGN_DIM                                               $12, ~13
         19        OP_DATA                                                  ~15
    6    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 900
         22      > JMPNZ                                                    ~19, ->12
    3    23    >   PRE_INC                                                  !1
         24    >   IS_SMALLER                                               !1, 900
         25      > JMPNZ                                                    ~21, ->3
    9    26    >   INIT_FCALL                                               'http_build_query'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $22     
         29        ASSIGN                                                   !0, $22
   10    30        INIT_FCALL                                               'parse_str'
         31        SEND_VAR                                                 !0
         32        SEND_REF                                                 !3
         33        DO_ICALL                                                 
   11    34        INIT_FCALL                                               'http_build_query'
         35        SEND_VAR                                                 !3
         36        DO_ICALL                                         $25     
         37        ASSIGN                                                   !3, $25
   12    38        INIT_FCALL                                               'explode'
         39        SEND_VAL                                                 '%26'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                         $27     
         42        COUNT                                            ~28     $27
         43        CONCAT                                           ~29     ~28, '%0A'
         44        ECHO                                                     ~29
   13    45        INIT_FCALL                                               'explode'
         46        SEND_VAL                                                 '%26'
         47        SEND_VAR                                                 !3
         48        DO_ICALL                                         $30     
         49        COUNT                                            ~31     $30
         50        CONCAT                                           ~32     ~31, '%0A'
         51        ECHO                                                     ~32
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.31 ms | 1400 KiB | 19 Q