3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '("one","two","three,subthree","four")'; $string = str_replace(['(', ')'], ['[', ']'], $string); $array = json_decode($string, true); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rs0EU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%28%22one%22%2C%22two%22%2C%22three%2Csubthree%22%2C%22four%22%29'
    4     1        FRAMELESS_ICALL_3                str_replace         ~3      <array>, <array>
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~3
    6     4        INIT_FCALL                                                   'json_decode'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     <true>
          7        DO_ICALL                                             $5      
          8        ASSIGN                                                       !1, $5
    7     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.72 ms | 2084 KiB | 15 Q