3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 503 => [ 'scores' => [ 4573 => ['answer' => 100], 4574 => ['answer' => 60], 4575 => ['answer' => 100], 4576 => ['answer' => 80], 4577 => ['answer' => 40], 4578 => ['answer' => 20], 4579 => ['answer' => 60], 4580 => ['answer' => 100], 4581 => ['answer' => 60], 4582 => ['answer' => 60], 4583 => ['answer' => 80], 4584 => ['answer' => 80], ], 'category' => 'Category A', 'grade' => 70, 'color' => NULL ], 504 => [ 'scores' => [ 4585 => ['answer' => 40], 4586 => ['answer' => 100], 4587 => ['answer' => 80], 4588 => ['answer' => 60], 4589 => ['answer' => 100], 4590 => ['answer' => 40], 4591 => ['answer' => 80], 4592 => ['answer' => 60], 4593 => ['answer' => 60], 4594 => ['answer' => 100], 4595 => ['answer' => 100], 4596 => ['answer' => 80], ], 'category' => 'Category B', 'grade' => 75, 'color' => NULL ], 505 => [ 'scores' => [ 4597 =>['answer' => 20], 4598 =>['answer' => 80], 4599 =>['answer' => 100], 4600 =>['answer' => 60], 4601 =>['answer' => 20], 4602 =>['answer' => 20], 4603 =>['answer' => 100], 4604 =>['answer' => 40], 4605 =>['answer' => 60], 4606 =>['answer' => 100], 4607 =>['answer' => 80], 4608 =>['answer' => 20], ], 'category' => 'Category C', 'grade' => 58.3, 'color' => NULL, ] ]; foreach ($array as &$row) { asort($row['scores']); } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/dotOE
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   63     1      > FE_RESET_RW                                      $3      !0, ->8
          2    > > FE_FETCH_RW                                              $3, !1, ->8
   64     3    >   INIT_FCALL                                               'asort'
          4        FETCH_DIM_W                                      $4      !1, 'scores'
          5        SEND_REF                                                 $4
          6        DO_ICALL                                                 
   63     7      > JMP                                                      ->2
          8    >   FE_FREE                                                  $3
   66     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.81 ms | 1000 KiB | 15 Q