3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = preg_split("\\[(.*?)\\]", "['hotels'][3]"); echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XFDLu
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_split'
          1        SEND_VAL                                                 '%5C%5B%28.%2A%3F%29%5C%5D'
          2        SEND_VAL                                                 '%5B%27hotels%27%5D%5B3%5D'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        ECHO                                                     !0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1393 KiB | 15 Q