3v4l.org

run code in 500+ 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:  13
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        FRAMELESS_ICALL_2                trim                ~2      !0, '%5B%5D'
          4        FRAMELESS_ICALL_3                str_replace         ~3      '%27', ''
          5        OP_DATA                                                      ~2
          6        SEND_VAL                                                     ~3
          7        DO_ICALL                                             $4      
          8        ASSIGN                                                       !0, $4
    6     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.93 ms | 2077 KiB | 15 Q