3v4l.org

run code in 500+ PHP versions simultaneously
<?php $lang_txt_array1 = [ 'Dutch' => [ ['name' => 'Kiburg, Natalie', 'ext' => 'None 5977'], ], 'French' => [ ['name' => 'Clausen, Katie', 'ext' => '(608) 5205'], ['name' => 'Viglucci, Maria Tina', 'ext' => '(429) 6713'], ], 'German' => [ ['name' => 'Pries, Nelli', 'ext' => '(289) 5846'], ['name' => 'Calhamer, Tatiana', 'ext' => '(289) 5838'], ], 'Indonesian' => [ ['name' => 'Meyer, Alexandra', 'ext' => '(931) 2094'], ], 'Korean' => [ ['name' => 'Yoon, Matthew', 'ext' => 'None 5990'], ], 'Laotian' => [ ['name' => 'Inthavong, Andrew', 'ext' => 'None 4695'], ], 'Lithuanian' => [ ['name' => 'Paulius, Vilija', 'ext' => '(289) 5817'], ], 'Polish' => [ ['name' => 'Arciuch, Eva', 'ext' => '(608) 5024'], ], 'Russian' => [ ['name' => 'Blair, Catherine', 'ext' => '(608) 5206'], ], 'Sign Language' => [ ['name' => 'Gough, Elizabeth', 'ext' => '(429) 4690'], ], 'Spanish' => [ ['name' => 'Hannaford, Nora', 'ext' => '(429) 4597'], // in the middle ['name' => 'Almanza, Janet', 'ext' => 'None None'], // second ['name' => 'Aguinaga, Karina', 'ext' => '(289) 5816'], // first ['name' => 'Birkholz, Tina', 'ext' => '(289) 5812'], ['name' => 'Bribiescas, Marisol', 'ext' => '(429) 4680'], ['name' => 'Brotsos, Alexander', 'ext' => '(289) 5843'], ['name' => 'Carapia, Jessica', 'ext' => '(429) 4673'], ['name' => 'Chacon, Nohora', 'ext' => '(429) 4673'], ['name' => 'Chang, Fernando', 'ext' => '(429) 4599'], ['name' => 'Chavez, Flor', 'ext' => '(429) 6791'], ['name' => 'Corona, Christina', 'ext' => '(429) 4685'], ['name' => 'De La Fuente, Margaret', 'ext' => '(429) 4695'], ['name' => 'Escalante, Adrian', 'ext' => '(742) 4690'], ['name' => 'Espinoza, Laura', 'ext' => '(289) 5806'], ['name' => 'Flores, Angel', 'ext' => '(289) 5837'], ['name' => 'Fulgencio, Lucero', 'ext' => '(429) 5976'], ['name' => 'Fuller, Jennifer', 'ext' => '(289) 5821'], ['name' => 'Gordon, Terrence', 'ext' => '(289) 5800'], ['name' => 'Gorostieta Reyes, Kathia', 'ext' => 'None none'], ['name' => 'Guadarrama, Erendira', 'ext' => '(608) 5223'], ['name' => 'Jaramillo, Erika', 'ext' => 'None None'], ['name' => 'Kampf, Allison', 'ext' => '(429) 5988'], ['name' => 'Leon, Grisel', 'ext' => '(289) 5815'], ['name' => 'Lopez, Isabel', 'ext' => '(429) 4597'], ['name' => 'Mattos Cruz, Ariana', 'ext' => 'None 4685'], ['name' => 'McDonald, Stephanie', 'ext' => 'None 5830'], ['name' => 'Moore, Andrew', 'ext' => '(695) 7577'], ['name' => 'Muro, Jasmine', 'ext' => 'None 0000'], ['name' => 'Muro, Stephanie', 'ext' => '(429) 6714'], ['name' => 'Ocampo, Maria', 'ext' => '(429) 4682'], ['name' => 'Padilla, Christine', 'ext' => '(289) 5829'], ['name' => 'Ramirez, Abigail', 'ext' => '(429) 4680'], ['name' => 'Raya, Adriana', 'ext' => 'None 4685'], ['name' => 'Rodriguez, Jazmin', 'ext' => 'None none'], ['name' => 'Ruiz, Maria', 'ext' => 'None 1'], ['name' => 'Saldivar, Marcos', 'ext' => '(695) 7577'], ['name' => 'Serrato, Xitlaly', 'ext' => '(429) 4695'], ['name' => 'Shroder, Elyssa', 'ext' => '(429) 4695'], ['name' => 'Swaine, Mary', 'ext' => '(429) 5588'], ['name' => 'Thompson, Susana', 'ext' => '(429) 6791'], ['name' => 'Vargas, Meleny', 'ext' => '(429) 4690'], ['name' => 'Vargas, Natalia', 'ext' => 'None none'], ['name' => 'Vargas, Unrico', 'ext' => 'None none'], ['name' => 'Viglucci, Maria Tina', 'ext' => '(429) 6713'], ['name' => 'Calhamer, Tatiana', 'ext' => '(289) 5838'], ['name' => 'Meyer, Alexandra', 'ext' => '(931) 2094'], ], ]; // Sorting the people within the languages foreach($lang_txt_array1 as $lang => $arr){ usort($arr, fn($a, $b) => strcmp($a['name'], $b['name'])); $lang_txt_array1[$lang] = $arr; } // Sorting languages according to their first person uasort($lang_txt_array1, fn($a, $b) => strcmp($a[0]['name'], $b[0]['name'])); print_r($lang_txt_array1);

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/YeLSr
function name:  (null)
number of ops:  22
compiled vars:  !0 = $lang_txt_array1, !1 = $arr, !2 = $lang
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   93     1      > FE_RESET_R                                           $4      !0, ->12
          2    > > FE_FETCH_R                                           ~5      $4, !1, ->12
          3    >   ASSIGN                                                       !2, ~5
   94     4        INIT_FCALL                                                   'usort'
          5        SEND_REF                                                     !1
          6        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
          7        SEND_VAL                                                     ~7
          8        DO_ICALL                                                     
   95     9        ASSIGN_DIM                                                   !0, !2
         10        OP_DATA                                                      !1
   93    11      > JMP                                                          ->2
         12    >   FE_FREE                                                      $4
   99    13        INIT_FCALL                                                   'uasort'
         14        SEND_REF                                                     !0
         15        DECLARE_LAMBDA_FUNCTION                              ~10     [1]
         16        SEND_VAL                                                     ~10
         17        DO_ICALL                                                     
  101    18        INIT_FCALL                                                   'print_r'
         19        SEND_VAR                                                     !0
         20        DO_ICALL                                                     
         21      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YeLSr
function name:  {closure:/in/YeLSr:94}
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   94     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        INIT_FCALL                                                   'strcmp'
          3        FETCH_DIM_R                                          ~2      !0, 'name'
          4        SEND_VAL                                                     ~2
          5        FETCH_DIM_R                                          ~3      !1, 'name'
          6        SEND_VAL                                                     ~3
          7        DO_ICALL                                             $4      
          8      > RETURN                                                       $4
          9*     > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YeLSr
function name:  {closure:/in/YeLSr:99}
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   99     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        INIT_FCALL                                                   'strcmp'
          3        FETCH_DIM_R                                          ~2      !0, 0
          4        FETCH_DIM_R                                          ~3      ~2, 'name'
          5        SEND_VAL                                                     ~3
          6        FETCH_DIM_R                                          ~4      !1, 0
          7        FETCH_DIM_R                                          ~5      ~4, 'name'
          8        SEND_VAL                                                     ~5
          9        DO_ICALL                                             $6      
         10      > RETURN                                                       $6
         11*     > RETURN                                                       null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.4 ms | 3199 KiB | 17 Q