3v4l.org

run code in 300+ 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:  15
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                                               'implode'
          2        SEND_VAL                                                 '%2C'
          3        INIT_FCALL                                               'array_column'
          4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAL                                                 'value'
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.76 ms | 998 KiB | 16 Q