3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'tag' => 'meta', 'type' => 'complete', 'attributes' => ['property' => 'og:type', 'content' => 'website'] ], [ 'tag' => 'meta', 'type' => 'complete', 'attributes' => ['name' => 'robots', 'content' => 'noindex, nofollow'] ], [ 'tag' => 'meta', 'type' => 'complete', 'attributes' => ['name' => 'application', 'content' => 'My Application'] ], [ 'tag' => 'meta', 'type' => 'complete', 'attributes' => ['http-equiv' => 'content-type', 'content' => 'text/html; charset=utf-8'] ] ]; foreach ($array as ['attributes' => $attr]) { foreach ($attr as $keys[] => $values[]) { break; } } array_multisort($keys, $values, $array); var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
Branch analysis from position: 14
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/l5bHj
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $attr, !2 = $values, !3 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1      > FE_RESET_R                                       $5      !0, ->16
          2    > > FE_FETCH_R                                               $5, $6, ->16
          3    >   FETCH_LIST_R                                     $7      $6, 'attributes'
          4        ASSIGN                                                   !1, $7
          5        FREE                                                     $6
   27     6      > FE_RESET_R                                       $9      !1, ->14
          7    > > FE_FETCH_R                                       ~12     $9, $10, ->14
          8    >   ASSIGN_DIM                                               !2
          9        OP_DATA                                                  $10
         10        ASSIGN_DIM                                               !3
         11        OP_DATA                                                  ~12
   28    12      > JMP                                                      ->14
   27    13*       JMP                                                      ->7
         14    >   FE_FREE                                                  $9
   26    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $5
   31    17        INIT_FCALL                                               'array_multisort'
         18        SEND_REF                                                 !3
         19        SEND_REF                                                 !2
         20        SEND_REF                                                 !0
         21        DO_ICALL                                                 
   32    22        INIT_FCALL                                               'var_export'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.26 ms | 1000 KiB | 15 Q