3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 0; $heights = array(); $n = readline(); for($i = 1; $i<=$n; $i++) { $line = readline(); $data = explode($line, " "); $heights[$i]['g'] = $data[0]; $heights[$i]['h'] = $data[1]; $heights[$i]['o'] = $i; } asort($heights['h']); for($i= 1; $i<=$n; $i++) echo $heights[$i]['o'];
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 = 7
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 35
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 35
Branch analysis from position: 41
Branch analysis from position: 35
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 7
Branch analysis from position: 29
Branch analysis from position: 7
filename:       /in/XiDVS
function name:  (null)
number of ops:  42
compiled vars:  !0 = $n, !1 = $heights, !2 = $i, !3 = $line, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL_BY_NAME                                       'readline'
          3        DO_FCALL                                      0  $7      
          4        ASSIGN                                                   !0, $7
    6     5        ASSIGN                                                   !2, 1
          6      > JMP                                                      ->27
    8     7    >   INIT_FCALL_BY_NAME                                       'readline'
          8        DO_FCALL                                      0  $10     
          9        ASSIGN                                                   !3, $10
    9    10        INIT_FCALL                                               'explode'
         11        SEND_VAR                                                 !3
         12        SEND_VAL                                                 '+'
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !4, $12
   10    15        FETCH_DIM_R                                      ~16     !4, 0
         16        FETCH_DIM_W                                      $14     !1, !2
         17        ASSIGN_DIM                                               $14, 'g'
         18        OP_DATA                                                  ~16
   11    19        FETCH_DIM_R                                      ~19     !4, 1
         20        FETCH_DIM_W                                      $17     !1, !2
         21        ASSIGN_DIM                                               $17, 'h'
         22        OP_DATA                                                  ~19
   12    23        FETCH_DIM_W                                      $20     !1, !2
         24        ASSIGN_DIM                                               $20, 'o'
         25        OP_DATA                                                  !2
    6    26        PRE_INC                                                  !2
         27    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         28      > JMPNZ                                                    ~23, ->7
   15    29    >   INIT_FCALL                                               'asort'
         30        FETCH_DIM_W                                      $24     !1, 'h'
         31        SEND_REF                                                 $24
         32        DO_ICALL                                                 
   17    33        ASSIGN                                                   !2, 1
         34      > JMP                                                      ->39
   18    35    >   FETCH_DIM_R                                      ~27     !1, !2
         36        FETCH_DIM_R                                      ~28     ~27, 'o'
         37        ECHO                                                     ~28
   17    38        PRE_INC                                                  !2
         39    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         40      > JMPNZ                                                    ~30, ->35
   18    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158 ms | 1400 KiB | 17 Q