3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'some text here some more ``` some code block with markdown ``` some `inline code` too and more code blocks: ``` xojo This must have three backticks flanking it ``` this text isn\'t matched...'; print_r(preg_split('~```.*?```|`[^`]*`~s', $text));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2kO6K
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'some+text+here%0A%0Asome+more%0A%0A%60%60%60+some+code+block%0Awith+markdown%0A%60%60%60%0A%0Asome+%60inline+code%60+too%0A%0Aand+more+code+blocks%3A%0A%0A%0A%60%60%60+xojo%0AThis+must+have+three+backticks%0Aflanking+it%0A%60%60%60%0A%0Athis+text+isn%27t+matched...'
   22     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%7E%60%60%60.%2A%3F%60%60%60%7C%60%5B%5E%60%5D%2A%60%7Es'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.31 ms | 1010 KiB | 15 Q