3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0;$i<1000;$i++) { $numbers = array(1,3,5,77,37,523,243,546,14,3,4,6,5); for ( $i = 0; $i < count($numbers); $i++ ) { for ($j = 0; $j < count($numbers); $j++ ) { if ($numbers[$i] < $numbers[$j]) { $temp = $numbers[$i]; $numbers[$i] = $numbers[$j]; $numbers[$j] = $temp; } } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 2
Branch analysis from position: 29
Branch analysis from position: 2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
Branch analysis from position: 5
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
Branch analysis from position: 7
Branch analysis from position: 18
filename:       /in/d8Pjo
function name:  (null)
number of ops:  30
compiled vars:  !0 = $i, !1 = $numbers, !2 = $j, !3 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->27
    4     2    >   ASSIGN                                                   !1, <array>
    5     3        ASSIGN                                                   !0, 0
          4      > JMP                                                      ->23
    7     5    >   ASSIGN                                                   !2, 0
          6      > JMP                                                      ->19
    9     7    >   FETCH_DIM_R                                      ~8      !1, !0
          8        FETCH_DIM_R                                      ~9      !1, !2
          9        IS_SMALLER                                               ~8, ~9
         10      > JMPZ                                                     ~10, ->18
   11    11    >   FETCH_DIM_R                                      ~11     !1, !0
         12        ASSIGN                                                   !3, ~11
   12    13        FETCH_DIM_R                                      ~14     !1, !2
         14        ASSIGN_DIM                                               !1, !0
         15        OP_DATA                                                  ~14
   13    16        ASSIGN_DIM                                               !1, !2
         17        OP_DATA                                                  !3
    7    18    >   PRE_INC                                                  !2
         19    >   COUNT                                            ~17     !1
         20        IS_SMALLER                                               !2, ~17
         21      > JMPNZ                                                    ~18, ->7
    5    22    >   PRE_INC                                                  !0
         23    >   COUNT                                            ~20     !1
         24        IS_SMALLER                                               !0, ~20
         25      > JMPNZ                                                    ~21, ->5
    2    26    >   PRE_INC                                                  !0
         27    >   IS_SMALLER                                               !0, 1000
         28      > JMPNZ                                                    ~23, ->2
   17    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.45 ms | 1395 KiB | 13 Q