3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^\h*\\\\_+\\\\_\R((?:.*\R(?!\h*\\\\_+\\\\_).*)*)/m'; $str = '--- - ID: some random id \\_______________________________\\_ HELLO This is an example text. I AM SECTION 1 \\_______________________________\\_ HELLO This is an example text. I AM SECTION 2 \\_______________________________\\_ HELLO This is an example text. I AM SECTION 3 \\_______________________________\\_ hello this is example text here and i am section 4'; preg_match_all($re, $str, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0rRUc
function name:  (null)
number of ops:  12
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E%5Ch%2A%5C%5C_%2B%5C%5C_%5CR%28%28%3F%3A.%2A%5CR%28%3F%21%5Ch%2A%5C%5C_%2B%5C%5C_%29.%2A%29%2A%29%2Fm'
    4     1        ASSIGN                                                   !1, '---%0A+-+ID%3A+some+random+id%0A%0A+%5C_______________________________%5C_%0AHELLO+%0AThis+is+an+example+text.%0AI+AM+SECTION+1%0A%5C_______________________________%5C_%0AHELLO+%0AThis+is+an+example+text.%0AI+AM+SECTION+2%0A%5C_______________________________%5C_%0AHELLO+%0AThis+is+an+example+text.%0AI+AM+SECTION+3%0A%5C_______________________________%5C_%0Ahello+%0Athis+is+example+text+here%0Aand+i+am+section+4'
   24     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   25     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 1
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.59 ms | 1394 KiB | 17 Q