3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '("one","two","three,subthree","four")'; $s = substr($string,2,-2); print_r(explode('","', $s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i7BUX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $s
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                substr              ~3      !0, 2
          2        OP_DATA                                                      -2
          3        ASSIGN                                                       !1, ~3
    5     4        INIT_FCALL                                                   'print_r'
          5        INIT_FCALL                                                   'explode'
          6        SEND_VAL                                                     '%22%2C%22'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                             $5      
          9        SEND_VAR                                                     $5
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.68 ms | 2113 KiB | 16 Q