3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = "adventuresalices00carrrich"; $itemPath = "/14/items/adventuresalices00carrrich"; print preg_match("|^/\d+/items/{$id}$|", $itemPath); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cMSjn
function name:  (null)
number of ops:  11
compiled vars:  !0 = $id, !1 = $itemPath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'adventuresalices00carrrich'
    4     1        ASSIGN                                                   !1, '%2F14%2Fitems%2Fadventuresalices00carrrich'
    5     2        INIT_FCALL                                               'preg_match'
          3        ROPE_INIT                                     3  ~5      '%7C%5E%2F%5Cd%2B%2Fitems%2F'
          4        ROPE_ADD                                      1  ~5      ~5, !0
          5        ROPE_END                                      2  ~4      ~5, '%24%7C'
          6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ECHO                                                     $7
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1394 KiB | 15 Q