3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.49 ms | 1393 KiB | 17 Q