3v4l.org

run code in 300+ 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:  15
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        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 -2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%22%2C%22'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.87 ms | 1011 KiB | 16 Q