3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'Hello How are you :slight_smile::joy:'; $regex = "/:([a-zA-Z0-9_]*):/"; preg_match_all($regex, $string, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ro1m3
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $regex, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Hello+How+are+you+%3Aslight_smile%3A%3Ajoy%3A'
    5     1        ASSIGN                                                       !1, '%2F%3A%28%5Ba-zA-Z0-9_%5D%2A%29%3A%2F'
    6     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !2
          6        DO_ICALL                                                     
    8     7        INIT_FCALL                                                   'print_r'
          8        FETCH_DIM_R                                          ~6      !2, 0
          9        SEND_VAL                                                     ~6
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.2 ms | 1589 KiB | 15 Q