3v4l.org

run code in 300+ PHP versions simultaneously
<?php $project_archives = array( 'Bridge Work' => array( array( 'Name' => 'NJ Trunpike_Bridge Repair Work', 'Location' => 'New Jersey', 'State' => 'New Jersey' ), array( 'Name' => 'Honoapiilani Highway Bridge Truss', 'Location' => 'Maui', 'State' => 'Hawai' ), array( 'Name' => 'BlueCross Blueshield of Tennessee (Bridge)', 'Location' => 'Memphis', 'State' => 'Tennessee' ), array( 'Name' => 'Henderson Center Connector Bridge', 'Location' => 'Coquitlam', 'State' => 'British Columbia' ), ), 'Educational' => array( array( 'Name' => 'RTI TASS Complex Admin Bldg', 'Location' => 'Bluffdale', 'State' => 'Utah' ), array( 'Name' => 'Auburn High School', 'Location' => 'Auburn', 'State' => 'Washington' ), array( 'Name' => 'Reed College', 'Location' => 'Portland', 'State' => 'Oregon' ), array( 'Name' => 'Shorewood High School', 'Location' => 'Shoreline', 'State' => 'Washington' ), ) ); $testing = array(); foreach($project_archives['Bridge Work'] as $key=>$value) { $testing[$key]=$value['State']; } asort($testing); print_r($testing); $a=array(); foreach($testing as $key=>$value) { $a[] = $project_archives['Bridge Work'][$key]; } print_r($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 26
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 10
filename:       /in/muSEB
function name:  (null)
number of ops:  31
compiled vars:  !0 = $project_archives, !1 = $testing, !2 = $value, !3 = $key, !4 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   51     1        ASSIGN                                                   !1, <array>
   53     2        FETCH_DIM_R                                      ~7      !0, 'Bridge+Work'
          3      > FE_RESET_R                                       $8      ~7, ->10
          4    > > FE_FETCH_R                                       ~9      $8, !2, ->10
          5    >   ASSIGN                                                   !3, ~9
   55     6        FETCH_DIM_R                                      ~12     !2, 'State'
          7        ASSIGN_DIM                                               !1, !3
          8        OP_DATA                                                  ~12
   53     9      > JMP                                                      ->4
         10    >   FE_FREE                                                  $8
   58    11        INIT_FCALL                                               'asort'
         12        SEND_REF                                                 !1
         13        DO_ICALL                                                 
   60    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   62    17        ASSIGN                                                   !4, <array>
   64    18      > FE_RESET_R                                       $16     !1, ->26
         19    > > FE_FETCH_R                                       ~17     $16, !2, ->26
         20    >   ASSIGN                                                   !3, ~17
   66    21        FETCH_DIM_R                                      ~20     !0, 'Bridge+Work'
         22        FETCH_DIM_R                                      ~21     ~20, !3
         23        ASSIGN_DIM                                               !4
         24        OP_DATA                                                  ~21
   64    25      > JMP                                                      ->19
         26    >   FE_FREE                                                  $16
   70    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.04 ms | 1388 KiB | 17 Q