3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD # a this is what should be returned # \a EOD; preg_match("/#{1}\s{1}a{1}\n{1}(.*)\n#{1}\s{1}\\a{1}/m", $str, $matches); /* Array ( ) */ print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ijss1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%23+a%0Athis+is+what+should+be+returned%0A%23+%5Ca%0A'
   11     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%23%7B1%7D%5Cs%7B1%7Da%7B1%7D%0A%7B1%7D%28.%2A%29%0A%23%7B1%7D%5Cs%7B1%7D%5Ca%7B1%7D%2Fm'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   18     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.05 ms | 939 KiB | 18 Q