3v4l.org

run code in 300+ PHP versions simultaneously
<?php $market_data_array =array ( 'Turkey' => array ( 'Gold' => array ( 2020 => array ( 'March' => array ( 12 => 25000 ), ), ), ), ); $country_name = 'Turkey'; $rates_property_type = 'Silver'; $year = '2020'; $month = 'March'; $day_date = '12'; $rate_today = 8000; $new_market_data = array( "".$country_name."" => array( "".$rates_property_type."" => array( "".$year."" => array( "".$month."" => array( "".$day_date."" => "".$rate_today."", ), ), ), ), ); $market_data_array = array_merge_recursive($market_data_array, $new_market_data); print_r($market_data_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/US5ZV
function name:  (null)
number of ops:  34
compiled vars:  !0 = $market_data_array, !1 = $country_name, !2 = $rates_property_type, !3 = $year, !4 = $month, !5 = $day_date, !6 = $rate_today, !7 = $new_market_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   23     1        ASSIGN                                                   !1, 'Turkey'
   24     2        ASSIGN                                                   !2, 'Silver'
   25     3        ASSIGN                                                   !3, '2020'
   26     4        ASSIGN                                                   !4, 'March'
   27     5        ASSIGN                                                   !5, '12'
   28     6        ASSIGN                                                   !6, 8000
   31     7        CONCAT                                           ~15     '', !1
          8        CONCAT                                           ~16     ~15, ''
   32     9        CONCAT                                           ~17     '', !2
         10        CONCAT                                           ~18     ~17, ''
   33    11        CONCAT                                           ~19     '', !3
         12        CONCAT                                           ~20     ~19, ''
   34    13        CONCAT                                           ~21     '', !4
         14        CONCAT                                           ~22     ~21, ''
   35    15        CONCAT                                           ~23     '', !5
         16        CONCAT                                           ~24     ~23, ''
         17        CONCAT                                           ~25     '', !6
         18        CONCAT                                           ~26     ~25, ''
         19        INIT_ARRAY                                       ~27     ~26, ~24
         20        INIT_ARRAY                                       ~28     ~27, ~22
         21        INIT_ARRAY                                       ~29     ~28, ~20
         22        INIT_ARRAY                                       ~30     ~29, ~18
         23        INIT_ARRAY                                       ~31     ~30, ~16
   30    24        ASSIGN                                                   !7, ~31
   42    25        INIT_FCALL                                               'array_merge_recursive'
         26        SEND_VAR                                                 !0
         27        SEND_VAR                                                 !7
         28        DO_ICALL                                         $33     
         29        ASSIGN                                                   !0, $33
   43    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.37 ms | 1002 KiB | 15 Q