3v4l.org

run code in 300+ PHP versions simultaneously
<?php $multiArray = Array( Array("id" => 1, "name" => "Defg"), Array("id" => 2, "name" => "Abcd"), Array("id" => 3, "name" => "Bcde"), Array("id" => 4, "name" => "Cdef")); $tmp = Array(); foreach($multiArray as &$ma) $tmp[] = &$ma["name"]; array_multisort($tmp, $multiArray); foreach($multiArray as &$ma) echo $ma["name"]."<br/>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
2 jumps found. (Code = 125) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 126) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/2bZrj
function name:  (null)
number of ops:  22
compiled vars:  !0 = $multiArray, !1 = $tmp, !2 = $ma
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
    8     2      > FE_RESET_RW                                      $5      !0, ->9
          3    > > FE_FETCH_RW                                              $5, !2, ->9
    9     4    >   FETCH_DIM_W                                      $7      !2, 'name'
          5        MAKE_REF                                         $8      $7
          6        FETCH_DIM_W                                      $6      !1
          7        ASSIGN_REF                                               $6, $8
    8     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $5
   10    10        INIT_FCALL                                               'array_multisort'
         11        SEND_REF                                                 !1
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
   11    14      > FE_RESET_RW                                      $11     !0, ->20
         15    > > FE_FETCH_RW                                              $11, !2, ->20
   12    16    >   FETCH_DIM_R                                      ~12     !2, 'name'
         17        CONCAT                                           ~13     ~12, '%3Cbr%2F%3E'
         18        ECHO                                                     ~13
   11    19      > JMP                                                      ->15
         20    >   FE_FREE                                                  $11
   12    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.52 ms | 1395 KiB | 15 Q