3v4l.org

run code in 300+ 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); $texts = array_column($dbTexts, 'de', 'name'); print_r($texts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MPDeF
function name:  (null)
number of ops:  16
compiled vars:  !0 = $json, !1 = $dbTexts, !2 = $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                                         $4      
          5        ASSIGN                                                   !1, $4
   24     6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 'de'
          9        SEND_VAL                                                 'name'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
   25    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.36 ms | 1001 KiB | 16 Q