3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = "###FLAG###\r\n###FLAG###"; // no modifiers preg_match('~###FLAG###.*###FLAG###~', $line, $matches); var_dump($matches); // with 's' modifier preg_match('~###FLAG###.*###FLAG###~s', $line, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWaDB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $line, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23%23%23FLAG%23%23%23%0D%0A%23%23%23FLAG%23%23%23'
    6     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%23%23%23FLAG%23%23%23.%2A%23%23%23FLAG%23%23%23%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   10     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%7E%23%23%23FLAG%23%23%23.%2A%23%23%23FLAG%23%23%23%7Es'
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !1
         13        DO_ICALL                                                 
   11    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.1 ms | 1459 KiB | 15 Q