3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello there ##NAME##, you have ##ORDERSNUM## orders pending"; preg_match_all('/##([^#]+)##/', $string, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a8rrX
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+there+%23%23NAME%23%23%2C+you+have+%23%23ORDERSNUM%23%23+orders+pending'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%23%23%28%5B%5E%23%5D%2B%29%23%23%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     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:
150.68 ms | 1404 KiB | 17 Q