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);
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/28COg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $project_archives, !1 = $testing, !2 = $value, !3 = $key
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                                      ~6      !0, 'Bridge+Work'
          3      > FE_RESET_R                                       $7      ~6, ->10
          4    > > FE_FETCH_R                                       ~8      $7, !2, ->10
          5    >   ASSIGN                                                   !3, ~8
   55     6        FETCH_DIM_R                                      ~11     !2, 'State'
          7        ASSIGN_DIM                                               !1, !3
          8        OP_DATA                                                  ~11
   53     9      > JMP                                                      ->4
         10    >   FE_FREE                                                  $7
   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                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.92 ms | 1395 KiB | 17 Q