3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = [54,23,2,56,7,2,300]; for ($j = 0, $count = count($str); $j < $count; $j++) { for ($i = $j + 1; $i < $count; $i++) { //if ($str[$i] > $str[$j]) { // list($str[$i], $str[$j]) = [$str[$j], $str[$i]]; //} if ($str[$i] < $str[$j]) { list($str[$i], $str[$j]) = [$str[$j], $str[$i]]; } } } print_r($str);
based on XrBNB
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 5
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 8
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 5
Branch analysis from position: 31
Branch analysis from position: 5
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 8
Branch analysis from position: 27
Branch analysis from position: 8
Branch analysis from position: 23
filename:       /in/ejaPq
function name:  (null)
number of ops:  35
compiled vars:  !0 = $str, !1 = $j, !2 = $count, !3 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   4     1        ASSIGN                                                   !1, 0
         2        COUNT                                            ~6      !0
         3        ASSIGN                                                   !2, ~6
         4      > JMP                                                      ->29
   5     5    >   ADD                                              ~8      !1, 1
         6        ASSIGN                                                   !3, ~8
         7      > JMP                                                      ->25
   9     8    >   FETCH_DIM_R                                      ~10     !0, !3
         9        FETCH_DIM_R                                      ~11     !0, !1
        10        IS_SMALLER_OR_EQUAL                              ~12     ~10, ~11
        11      > JMPZ                                                     ~12, ->23
  10    12    >   FETCH_DIM_R                                      ~13     !0, !1
        13        INIT_ARRAY                                       ~14     ~13
        14        FETCH_DIM_R                                      ~15     !0, !3
        15        ADD_ARRAY_ELEMENT                                ~14     ~15
        16        FETCH_LIST_R                                     $16     ~14, 0
        17        ASSIGN_DIM                                               !0, !3
        18        OP_DATA                                                  $16
        19        FETCH_LIST_R                                     $18     ~14, 1
        20        ASSIGN_DIM                                               !0, !1
        21        OP_DATA                                                  $18
        22        FREE                                                     ~14
   5    23    >   POST_INC                                         ~20     !3
        24        FREE                                                     ~20
        25    >   IS_SMALLER_OR_EQUAL                              ~21     !3, !2
        26      > JMPNZ                                                    ~21, ->8
   4    27    >   POST_INC                                         ~22     !1
        28        FREE                                                     ~22
        29    >   IS_SMALLER_OR_EQUAL                              ~23     !1, !2
        30      > JMPNZ                                                    ~23, ->5
  14    31    >   INIT_FCALL                                               'print_r'
        32        SEND_VAR                                                 !0
        33        DO_ICALL                                                 
        34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0