3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tourAvaibilityDate = array ( 'tour_avaibility' => array ( 'tour_avaibility_location' => array ( 'Location_one' => 'Location_two', 'Location_seven' => 'Location_nine' ), 'tour_avaibility_date' => array ( '02/11/2020' => '02/17/2020', '02/21/2020' => '02/26/2020' ) ) ); $tours = $tourAvaibilityDate['tour_avaibility']; $start_locations = array_keys($tours['tour_avaibility_location']); $end_locations = array_values($tours['tour_avaibility_location']); $start_dates = array_keys($tours['tour_avaibility_date']); $end_dates = array_values($tours['tour_avaibility_date']); $c = count($start_locations); for ($i = 0; $i < $c; $i++) { echo $start_locations[$i] . ' - ' . $end_locations[$i] . "\n"; echo $start_dates[$i] . ' - ' . $end_dates[$i] . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 27
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 27
Branch analysis from position: 42
Branch analysis from position: 27
filename:       /in/EB4Kc
function name:  (null)
number of ops:  43
compiled vars:  !0 = $tourAvaibilityDate, !1 = $tours, !2 = $start_locations, !3 = $end_locations, !4 = $start_dates, !5 = $end_dates, !6 = $c, !7 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   19     1        FETCH_DIM_R                                      ~9      !0, 'tour_avaibility'
          2        ASSIGN                                                   !1, ~9
   20     3        INIT_FCALL                                               'array_keys'
          4        FETCH_DIM_R                                      ~11     !1, 'tour_avaibility_location'
          5        SEND_VAL                                                 ~11
          6        DO_ICALL                                         $12     
          7        ASSIGN                                                   !2, $12
   21     8        INIT_FCALL                                               'array_values'
          9        FETCH_DIM_R                                      ~14     !1, 'tour_avaibility_location'
         10        SEND_VAL                                                 ~14
         11        DO_ICALL                                         $15     
         12        ASSIGN                                                   !3, $15
   22    13        INIT_FCALL                                               'array_keys'
         14        FETCH_DIM_R                                      ~17     !1, 'tour_avaibility_date'
         15        SEND_VAL                                                 ~17
         16        DO_ICALL                                         $18     
         17        ASSIGN                                                   !4, $18
   23    18        INIT_FCALL                                               'array_values'
         19        FETCH_DIM_R                                      ~20     !1, 'tour_avaibility_date'
         20        SEND_VAL                                                 ~20
         21        DO_ICALL                                         $21     
         22        ASSIGN                                                   !5, $21
   24    23        COUNT                                            ~23     !2
         24        ASSIGN                                                   !6, ~23
   25    25        ASSIGN                                                   !7, 0
         26      > JMP                                                      ->40
   26    27    >   FETCH_DIM_R                                      ~26     !2, !7
         28        CONCAT                                           ~27     ~26, '+-+'
         29        FETCH_DIM_R                                      ~28     !3, !7
         30        CONCAT                                           ~29     ~27, ~28
         31        CONCAT                                           ~30     ~29, '%0A'
         32        ECHO                                                     ~30
   27    33        FETCH_DIM_R                                      ~31     !4, !7
         34        CONCAT                                           ~32     ~31, '+-+'
         35        FETCH_DIM_R                                      ~33     !5, !7
         36        CONCAT                                           ~34     ~32, ~33
         37        CONCAT                                           ~35     ~34, '%0A'
         38        ECHO                                                     ~35
   25    39        PRE_INC                                                  !7
         40    >   IS_SMALLER                                               !7, !6
         41      > JMPNZ                                                    ~37, ->27
   28    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.32 ms | 958 KiB | 15 Q