3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '["pdf","xlsx","docx"]'; $string = implode(',',json_decode($json,1)); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BEEsZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%22pdf%22%2C%22xlsx%22%2C%22docx%22%5D'
    4     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C'
          3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    5    10        ECHO                                                     !1
    6    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1010 KiB | 15 Q