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);
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 = 5
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 8
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 5
Branch analysis from position: 29
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 = 26, Position 2 = 8
Branch analysis from position: 26
Branch analysis from position: 8
Branch analysis from position: 23
filename:       /in/ejaPq
function name:  (null)
number of ops:  33
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                                                      ->27
    5     5    >   ADD                                              ~8      !1, 1
          6        ASSIGN                                                   !3, ~8
          7      > JMP                                                      ->24
    9     8    >   FETCH_DIM_R                                      ~10     !0, !3
          9        FETCH_DIM_R                                      ~11     !0, !1
         10        IS_SMALLER                                               ~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    >   PRE_INC                                                  !3
         24    >   IS_SMALLER                                               !3, !2
         25      > JMPNZ                                                    ~21, ->8
    4    26    >   PRE_INC                                                  !1
         27    >   IS_SMALLER                                               !1, !2
         28      > JMPNZ                                                    ~23, ->5
   14    29    >   INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.96 ms | 1396 KiB | 15 Q