3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json = '[{ "id": 1, "de": "German text", "en": "English text", "name": "question" }, { "id": 2, "de": "German text", "en": "English text", "name": "error" }, { "id": 3, "de": "German text", "en": "English text", "name": "success" }]'; $dbTexts = json_decode($json, true); foreach ($dbTexts as $text) { $texts[$text['name']] = $text['de']; } print_r($texts);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/OpmCp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $json, !1 = $dbTexts, !2 = $text, !3 = $texts
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5B%7B%0A+++%22id%22%3A+1%2C%0A+++%22de%22%3A+%22German+text%22%2C%0A+++%22en%22%3A+%22English+text%22%2C%0A+++%22name%22%3A+%22question%22%0A%7D%2C%0A%7B%0A+++%22id%22%3A+2%2C%0A+++%22de%22%3A+%22German+text%22%2C%0A+++%22en%22%3A+%22English+text%22%2C%0A+++%22name%22%3A+%22error%22%0A%7D%2C%0A%7B%0A+++%22id%22%3A+3%2C%0A+++%22de%22%3A+%22German+text%22%2C%0A+++%22en%22%3A+%22English+text%22%2C%0A+++%22name%22%3A+%22success%22%0A%7D%5D'
   22     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $5      
          5        ASSIGN                                                       !1, $5
   24     6      > FE_RESET_R                                           $7      !1, ->13
          7    > > FE_FETCH_R                                                   $7, !2, ->13
   25     8    >   FETCH_DIM_R                                          ~8      !2, 'name'
          9        FETCH_DIM_R                                          ~10     !2, 'de'
         10        ASSIGN_DIM                                                   !3, ~8
         11        OP_DATA                                                      ~10
   24    12      > JMP                                                          ->7
         13    >   FE_FREE                                                      $7
   27    14        INIT_FCALL                                                   'print_r'
         15        SEND_VAR                                                     !3
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.09 ms | 2040 KiB | 15 Q