3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_str = ' Rollo is* My dog* And he\'s very* Lovely* '; preg_match_all('/\S+(?=\*$)/m', $my_str, $end_words); print_r($end_words);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YfSSW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $my_str, !1 = $end_words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0ARollo+is%2A%0AMy+dog%2A%0AAnd+he%27s+very%2A%0ALovely%2A%0A'
   10     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5CS%2B%28%3F%3D%5C%2A%24%29%2Fm'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   11     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:
141.96 ms | 1001 KiB | 15 Q