3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uid = 'NIbW9dAJpBabSy1j5aNQdQ'; echo strlen($uid). "\n"; preg_match('(^([a-zA-Z0-9_-]{22})$)', $uid, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6douH
function name:  (null)
number of ops:  13
compiled vars:  !0 = $uid, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'NIbW9dAJpBabSy1j5aNQdQ'
    3     1        STRLEN                                           ~3      !0
          2        CONCAT                                           ~4      ~3, '%0A'
          3        ECHO                                                     ~4
    4     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%28%5E%28%5Ba-zA-Z0-9_-%5D%7B22%7D%29%24%29'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.93 ms | 1394 KiB | 17 Q