3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attractionsArray = array( "Services" => array( "Travel & Hotels ~72", "Automotive~119", "Professional Services~71", "Home Services~70", "IT Services & Computer Repair~83", "Health and Medical~69" ), "Restaurants" => array( "American / Eclectic~2", "Cafe~11", "Desserts & Bakery~111" ), "Shopping" => array( "Office Equipment~103", "Department Stores~91", "Cosmetics & Beauty Supply~90", "Musical Instruments & Teachers~102", "Food~87" ), "Entertainment" => array( "Bars/Pubs~48" ), "Travel" => array( "Hotels~129" ) ); foreach($attractionsArray as $key => $innerArray) { $attractionArray[$key] = sort($innerArray, SORT_STRING); } print_r($attractionArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 78) 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/PSEun
function name:  (null)
number of ops:  16
compiled vars:  !0 = $attractionsArray, !1 = $innerArray, !2 = $key, !3 = $attractionArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   32     1      > FE_RESET_R                                       $5      !0, ->11
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->11
          3    >   ASSIGN                                                   !2, ~6
   34     4        INIT_FCALL                                               'sort'
          5        SEND_REF                                                 !1
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $9      
          8        ASSIGN_DIM                                               !3, !2
          9        OP_DATA                                                  $9
   32    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $5
   37    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.41 ms | 1386 KiB | 17 Q