3v4l.org

run code in 500+ PHP versions simultaneously
<?php $raw = "/3/topic/video1148288/"; preg_match("#/video(\d+)/#", $raw, $matches); $embed = $matches[1]; echo $embed;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oLPMX
function name:  (null)
number of ops:  10
compiled vars:  !0 = $raw, !1 = $matches, !2 = $embed
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%2F3%2Ftopic%2Fvideo1148288%2F'
    3     1        INIT_FCALL                                                   'preg_match'
          2        SEND_VAL                                                     '%23%2Fvideo%28%5Cd%2B%29%2F%23'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    4     6        FETCH_DIM_R                                          ~5      !1, 1
          7        ASSIGN                                                       !2, ~5
    6     8        ECHO                                                         !2
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.48 ms | 3182 KiB | 14 Q