3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.85 ms | 1396 KiB | 15 Q