3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = ['0.3', '.5', '4', 'F', 'z', 4]; $n = count($values); for ($i = 0; $i < $n - 1; ++$i) { for ($j = $i + 1; $j < $n; ++$j) { $pair = [$values[$i], $values[$j]]; sort($pair); print var_export($pair[0], TRUE) . ' < ' . var_export($pair[1], TRUE) . "\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 = 37, Position 2 = 5
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 8
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 5
Branch analysis from position: 37
Branch analysis from position: 5
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 8
Branch analysis from position: 33
Branch analysis from position: 8
filename:       /in/P288c
function name:  (null)
number of ops:  38
compiled vars:  !0 = $values, !1 = $n, !2 = $i, !3 = $j, !4 = $pair
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~6      !0
          2        ASSIGN                                                   !1, ~6
    5     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->34
    6     5    >   ADD                                              ~9      !2, 1
          6        ASSIGN                                                   !3, ~9
          7      > JMP                                                      ->31
    7     8    >   FETCH_DIM_R                                      ~11     !0, !2
          9        INIT_ARRAY                                       ~12     ~11
         10        FETCH_DIM_R                                      ~13     !0, !3
         11        ADD_ARRAY_ELEMENT                                ~12     ~13
         12        ASSIGN                                                   !4, ~12
    8    13        INIT_FCALL                                               'sort'
         14        SEND_REF                                                 !4
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'var_export'
         17        FETCH_DIM_R                                      ~16     !4, 0
         18        SEND_VAL                                                 ~16
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $17     
         21        CONCAT                                           ~18     $17, '+%3C+'
         22        INIT_FCALL                                               'var_export'
         23        FETCH_DIM_R                                      ~19     !4, 1
         24        SEND_VAL                                                 ~19
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $20     
         27        CONCAT                                           ~21     ~18, $20
         28        CONCAT                                           ~22     ~21, '%0A'
         29        ECHO                                                     ~22
    6    30        PRE_INC                                                  !3
         31    >   IS_SMALLER                                               !3, !1
         32      > JMPNZ                                                    ~24, ->8
    5    33    >   PRE_INC                                                  !2
         34    >   SUB                                              ~26     !1, 1
         35        IS_SMALLER                                               !2, ~26
         36      > JMPNZ                                                    ~27, ->5
   11    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.13 ms | 1004 KiB | 15 Q