3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [1,2,3]; $array2 = [3,2,1]; $array3 = [2,1,3]; $array4 = [2,1,3]; $array5 = [1,1,1]; $array6 = [3,3,2]; $array7 = [1,2,1]; $array8 = [8,9,2]; sort($array1); for ($i = 2; $i <= 8; $i++) { sort(${"array$i"}); echo "array $i: " . ($array1 == ${"array$i"} ? 'match' : 'no match') . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 13
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 13
Branch analysis from position: 36
Branch analysis from position: 13
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 13
Branch analysis from position: 36
Branch analysis from position: 13
filename:       /in/JPXX8
function name:  (null)
number of ops:  37
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $array4, !4 = $array5, !5 = $array6, !6 = $array7, !7 = $array8, !8 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, <array>
    8     4        ASSIGN                                                   !4, <array>
    9     5        ASSIGN                                                   !5, <array>
   10     6        ASSIGN                                                   !6, <array>
   11     7        ASSIGN                                                   !7, <array>
   13     8        INIT_FCALL                                               'sort'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
   14    11        ASSIGN                                                   !8, 2
         12      > JMP                                                      ->34
   15    13    >   INIT_FCALL                                               'sort'
         14        NOP                                                      
         15        FAST_CONCAT                                      ~19     'array', !8
         16        FETCH_W                      local               $20     ~19
         17        SEND_REF                                                 $20
         18        DO_ICALL                                                 
   16    19        ROPE_INIT                                     3  ~23     'array+'
         20        ROPE_ADD                                      1  ~23     ~23, !8
         21        ROPE_END                                      2  ~22     ~23, '%3A+'
         22        NOP                                                      
         23        FAST_CONCAT                                      ~25     'array', !8
         24        FETCH_R                      local               ~26     ~25
         25        IS_EQUAL                                                 !0, ~26
         26      > JMPZ                                                     ~27, ->29
         27    >   QM_ASSIGN                                        ~28     'match'
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~28     'no+match'
         30    >   CONCAT                                           ~29     ~22, ~28
         31        CONCAT                                           ~30     ~29, '%0A'
         32        ECHO                                                     ~30
   14    33        PRE_INC                                                  !8
         34    >   IS_SMALLER_OR_EQUAL                                      !8, 8
         35      > JMPNZ                                                    ~32, ->13
   17    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.71 ms | 1018 KiB | 14 Q