3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json_str = '[{"value":"css"},{"value":"html"},{"value":"javascript"},{"value":"just a samplepost"}]'; echo implode(',',array_column(json_decode($json_str,true),'value'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XhiBZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json_str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5B%7B%22value%22%3A%22css%22%7D%2C%7B%22value%22%3A%22html%22%7D%2C%7B%22value%22%3A%22javascript%22%7D%2C%7B%22value%22%3A%22just+a+samplepost%22%7D%5D'
    4     1        INIT_FCALL                                                   'array_column'
          2        INIT_FCALL                                                   'json_decode'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     <true>
          5        DO_ICALL                                             $2      
          6        SEND_VAR                                                     $2
          7        SEND_VAL                                                     'value'
          8        DO_ICALL                                             $3      
          9        FRAMELESS_ICALL_2                implode             ~4      '%2C', $3
         10        ECHO                                                         ~4
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.41 ms | 2073 KiB | 15 Q