3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'fxs_124024574287414=base_domain=.example.com; datr=KWHazxXEIkldzBaVq_of--syv5; csrftoken=szcwad; ds_user_id=219132; mid=XN4bpAAEAAHOyBRR4V17xfbaosyN; sessionid=14811313756%12fasda%3A27; rur=VLL;'; echo preg_match('~ds_user_id=\K\d+~', $str, $out) ? $out[0] : 'no match';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8EBmC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'fxs_124024574287414%3Dbase_domain%3D.example.com%3B+datr%3DKWHazxXEIkldzBaVq_of--syv5%3B+csrftoken%3Dszcwad%3B+ds_user_id%3D219132%3B+mid%3DXN4bpAAEAAHOyBRR4V17xfbaosyN%3B+sessionid%3D14811313756%2512fasda%253A27%3B+rur%3DVLL%3B'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7Eds_user_id%3D%5CK%5Cd%2B%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->10
          7    >   FETCH_DIM_R                                      ~4      !1, 0
          8        QM_ASSIGN                                        ~5      ~4
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~5      'no+match'
         11    >   ECHO                                                     ~5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
304.95 ms | 1004 KiB | 14 Q