3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match( '/(Clients=)([0-9]{1,}),/', 'RunUO, Name=Pure Blood, Age=1, Clients=1, Items=110859, Chars=37967, Mem=270972K, Ver=2', $playersOnline ); echo $playersOnline[2]; // 1234
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aAioK
function name:  (null)
number of ops:  8
compiled vars:  !0 = $playersOnline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%28Clients%3D%29%28%5B0-9%5D%7B1%2C%7D%29%2C%2F'
          2        SEND_VAL                                                 'RunUO%2C+Name%3DPure+Blood%2C+Age%3D1%2C+Clients%3D1%2C+Items%3D110859%2C+Chars%3D37967%2C+Mem%3D270972K%2C+Ver%3D2'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        FETCH_DIM_R                                      ~2      !0, 2
          6        ECHO                                                     ~2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.13 ms | 1385 KiB | 15 Q