3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "Ik ben #Nicky# ik werk bij de #McDonalds# en ik bak daar de #kip nuggets# en de #kip burgers# en morgen heb ik een #training#."; $match = preg_match_all('/#+([a-zA-Z0-9 ])+#/', $subject, $matches, PREG_PATTERN_ORDER); echo '<pre>'; print_r($matches[0]); echo '</pre>'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FG0OT
function name:  (null)
number of ops:  15
compiled vars:  !0 = $subject, !1 = $match, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Ik+ben+%23Nicky%23+ik+werk+bij+de+%23McDonalds%23+en+ik+bak+daar+de+%23kip+nuggets%23%0Aen+de+%23kip+burgers%23+en+morgen+heb+ik+een+%23training%23.'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%23%2B%28%5Ba-zA-Z0-9+%5D%29%2B%23%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        ECHO                                                     '%3Cpre%3E'
    7     9        INIT_FCALL                                               'print_r'
         10        FETCH_DIM_R                                      ~6      !2, 0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
    8    13        ECHO                                                     '%3C%2Fpre%3E'
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1394 KiB | 17 Q