3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "['one']['two']"; $s = explode("][", str_replace("'", "", trim($s, "[]"))); var_dump($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YUjbn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%27one%27%5D%5B%27two%27%5D'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%5D%5B'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '%27'
          5        SEND_VAL                                                 ''
          6        INIT_FCALL                                               'trim'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '%5B%5D'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !0, $4
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.71 ms | 1006 KiB | 18 Q