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 ['scores' => &$scores]) { arsort($scores); } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/CcHA0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $scores
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   63     1      > FE_RESET_RW                                      $3      !0, ->11
          2    > > FE_FETCH_RW                                              $3, $4, ->11
          3    >   FETCH_LIST_W                                     $5      $4, 'scores'
          4        MAKE_REF                                         $6      $5
          5        ASSIGN_REF                                               !1, $6
          6        FREE                                                     $4
   64     7        INIT_FCALL                                               'arsort'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
   63    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $3
   66    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.89 ms | 998 KiB | 15 Q