3v4l.org

run code in 500+ PHP versions simultaneously
<?php $live_quotations = [ 'June 2015' => [ 'LOW' => [160.50], 'MEDIUM' => [0.00], 'HIGH' => [60.80] ], 'July 2015' => [ 'MEDIUM' => [226.00], 'HIGH' => [263.00], 'LOW' => [121.96] ] ]; $ordered_defaults = array_fill_keys(['LOW', 'MEDIUM', 'HIGH'], 0); foreach ($live_quotations as $date => $likelihoods) { $live_quotations[$date] = array_replace($ordered_defaults, $likelihoods); } var_export($live_quotations);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Y7qDr
function name:  (null)
number of ops:  21
compiled vars:  !0 = $live_quotations, !1 = $ordered_defaults, !2 = $likelihoods, !3 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   16     1        INIT_FCALL                                                   'array_fill_keys'
          2        SEND_VAL                                                     <array>
          3        SEND_VAL                                                     0
          4        DO_ICALL                                             $5      
          5        ASSIGN                                                       !1, $5
   18     6      > FE_RESET_R                                           $7      !0, ->16
          7    > > FE_FETCH_R                                           ~8      $7, !2, ->16
          8    >   ASSIGN                                                       !3, ~8
   19     9        INIT_FCALL                                                   'array_replace'
         10        SEND_VAR                                                     !1
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                             $11     
         13        ASSIGN_DIM                                                   !0, !3
         14        OP_DATA                                                      $11
   18    15      > JMP                                                          ->7
         16    >   FE_FREE                                                      $7
   22    17        INIT_FCALL                                                   'var_export'
         18        SEND_VAR                                                     !0
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.53 ms | 2235 KiB | 16 Q