3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "match_id": "345064", "odd_bookmakers": "Interwetten.es", "odd_date": "2018-10-24 04:39:45", "odd_1": "2.05", "odd_x": "2.95", "odd_2": "3.95", "odd_1x": "", "odd_12": "", "odd_x2": "", "ah-4.5_1": "", "ah-4.5_2": "", "ah-4_1": "", "ah-4_2": "", "ah-3.5_1": "", "ah-3.5_2": "", "ah-3_1": "", "ah-3_2": "", "ah-2.5_1": "", "ah-2.5_2": "", "ah-2_1": "", "ah-2_2": "", "ah-1.5_1": "", "ah-1.5_2": "", "ah-1_1": "3.00", "ah-1_2": "1.33", "ah0_1": "1.42", "ah0_2": "2.65", "ah+0.5_1": "", "ah+1_1": "", "ah+1_2": "", "ah+1.5_1": "", "ah+1.5_2": "", "ah+2_1": "", "ah+2_2": "", "ah+2.5_1": "", "ah+2.5_2": "", "ah+3_1": "", "ah+3_2": "", "ah+3.5_1": "", "ah+3.5_2": "", "ah+4_1": "", "ah+4_2": "", "ah+4.5_1": "", "ah+4.5_2": "", "o+0.5": "", "u+0.5": "", "o+1": "", "u+1": "", "o+1.5": "", "u+1.5": "", "o+2": "", "u+2": "", "o+2.5": "2.45", "u+2.5": "1.48", "o+3": "", "u+3": "", "o+3.5": "", "u+3.5": "", "o+4": "", "u+4": "", "o+4.5": "", "u+4.5": "", "o+5": "", "u+5": "", "o+5.5": "", "u+5.5": "", "bts_yes": "2.05", "bts_no": "1.67" } ]'; $cols = array_fill_keys(['match_id', 'odd_bookmakers', 'odd_date', 'odd_1', 'odd_x', 'odd_2', 'odd_1x', 'o+0.5', 'u_+0.5', 'o+1.5', 'bts_yes', 'bts_no'], null); foreach(json_decode($json, true) as $row) { $row = array_replace($cols, array_intersect_key($row, $cols)); var_export($row); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 25
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 25
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/qEDP4
function name:  (null)
number of ops:  27
compiled vars:  !0 = $json, !1 = $cols, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%0A%7B%0A%22match_id%22%3A+%22345064%22%2C%0A%22odd_bookmakers%22%3A+%22Interwetten.es%22%2C%0A%22odd_date%22%3A+%222018-10-24+04%3A39%3A45%22%2C%0A%22odd_1%22%3A+%222.05%22%2C%0A%22odd_x%22%3A+%222.95%22%2C%0A%22odd_2%22%3A+%223.95%22%2C%0A%22odd_1x%22%3A+%22%22%2C%0A%22odd_12%22%3A+%22%22%2C%0A%22odd_x2%22%3A+%22%22%2C%0A%22ah-4.5_1%22%3A+%22%22%2C%0A%22ah-4.5_2%22%3A+%22%22%2C%0A%22ah-4_1%22%3A+%22%22%2C%0A%22ah-4_2%22%3A+%22%22%2C%0A%22ah-3.5_1%22%3A+%22%22%2C%0A%22ah-3.5_2%22%3A+%22%22%2C%0A%22ah-3_1%22%3A+%22%22%2C%0A%22ah-3_2%22%3A+%22%22%2C%0A%22ah-2.5_1%22%3A+%22%22%2C%0A%22ah-2.5_2%22%3A+%22%22%2C%0A%22ah-2_1%22%3A+%22%22%2C%0A%22ah-2_2%22%3A+%22%22%2C%0A%22ah-1.5_1%22%3A+%22%22%2C%0A%22ah-1.5_2%22%3A+%22%22%2C%0A%22ah-1_1%22%3A+%223.00%22%2C%0A%22ah-1_2%22%3A+%221.33%22%2C%0A%22ah0_1%22%3A+%221.42%22%2C%0A%22ah0_2%22%3A+%222.65%22%2C%0A%22ah%2B0.5_1%22%3A+%22%22%2C%0A%22ah%2B1_1%22%3A+%22%22%2C%0A%22ah%2B1_2%22%3A+%22%22%2C%0A%22ah%2B1.5_1%22%3A+%22%22%2C%0A%22ah%2B1.5_2%22%3A+%22%22%2C%0A%22ah%2B2_1%22%3A+%22%22%2C%0A%22ah%2B2_2%22%3A+%22%22%2C%0A%22ah%2B2.5_1%22%3A+%22%22%2C%0A%22ah%2B2.5_2%22%3A+%22%22%2C%0A%22ah%2B3_1%22%3A+%22%22%2C%0A%22ah%2B3_2%22%3A+%22%22%2C%0A%22ah%2B3.5_1%22%3A+%22%22%2C%0A%22ah%2B3.5_2%22%3A+%22%22%2C%0A%22ah%2B4_1%22%3A+%22%22%2C%0A%22ah%2B4_2%22%3A+%22%22%2C%0A%22ah%2B4.5_1%22%3A+%22%22%2C%0A%22ah%2B4.5_2%22%3A+%22%22%2C%0A%22o%2B0.5%22%3A+%22%22%2C%0A%22u%2B0.5%22%3A+%22%22%2C%0A%22o%2B1%22%3A+%22%22%2C%0A%22u%2B1%22%3A+%22%22%2C%0A%22o%2B1.5%22%3A+%22%22%2C%0A%22u%2B1.5%22%3A+%22%22%2C%0A%22o%2B2%22%3A+%22%22%2C%0A%22u%2B2%22%3A+%22%22%2C%0A%22o%2B2.5%22%3A+%222.45%22%2C%0A%22u%2B2.5%22%3A+%221.48%22%2C%0A%22o%2B3%22%3A+%22%22%2C%0A%22u%2B3%22%3A+%22%22%2C%0A%22o%2B3.5%22%3A+%22%22%2C%0A%22u%2B3.5%22%3A+%22%22%2C%0A%22o%2B4%22%3A+%22%22%2C%0A%22u%2B4%22%3A+%22%22%2C%0A%22o%2B4.5%22%3A+%22%22%2C%0A%22u%2B4.5%22%3A+%22%22%2C%0A%22o%2B5%22%3A+%22%22%2C%0A%22u%2B5%22%3A+%22%22%2C%0A%22o%2B5.5%22%3A+%22%22%2C%0A%22u%2B5.5%22%3A+%22%22%2C%0A%22bts_yes%22%3A+%222.05%22%2C%0A%22bts_no%22%3A+%221.67%22%0A%7D%0A%5D'
   75     1        INIT_FCALL                                               'array_fill_keys'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 null
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   77     6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $6      
         10      > FE_RESET_R                                       $7      $6, ->25
         11    > > FE_FETCH_R                                               $7, !2, ->25
   78    12    >   INIT_FCALL                                               'array_replace'
         13        SEND_VAR                                                 !1
         14        INIT_FCALL                                               'array_intersect_key'
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20        ASSIGN                                                   !2, $9
   79    21        INIT_FCALL                                               'var_export'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   77    24      > JMP                                                      ->11
         25    >   FE_FREE                                                  $7
   80    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.68 ms | 1011 KiB | 18 Q