3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/\\[switch[^\\]]*\\]/'; $subject = 'こんにちは。[feedback]おはよう。[switch]ありがとうございました。[switchcase]さようなら。'; $vars = preg_split($pattern, $subject); var_dump($vars);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1P24v
function name:  (null)
number of ops:  11
compiled vars:  !0 = $pattern, !1 = $subject, !2 = $vars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%5C%5Bswitch%5B%5E%5C%5D%5D%2A%5C%5D%2F'
    3     1        ASSIGN                                                   !1, '%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%82%5Bfeedback%5D%E3%81%8A%E3%81%AF%E3%82%88%E3%81%86%E3%80%82%5Bswitch%5D%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%5Bswitchcase%5D%E3%81%95%E3%82%88%E3%81%86%E3%81%AA%E3%82%89%E3%80%82'
    4     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.07 ms | 1394 KiB | 17 Q