3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ln = "A/RADIUS ADMITS VALUE 20"; $trg = "A/RADIUS"; $matches = array(); $zz = preg_match('#' . $trg . '\sADMITS\s(VALUE)\s([^\s]+)#',$ln,$matches); echo $zz;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n7SLZ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ln, !1 = $trg, !2 = $matches, !3 = $zz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'A%2FRADIUS+ADMITS+VALUE+20'
    4     1        ASSIGN                                                   !1, 'A%2FRADIUS'
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'preg_match'
          4        CONCAT                                           ~7      '%23', !1
          5        CONCAT                                           ~8      ~7, '%5CsADMITS%5Cs%28VALUE%29%5Cs%28%5B%5E%5Cs%5D%2B%29%23'
          6        SEND_VAL                                                 ~8
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !2
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    7    11        ECHO                                                     !3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.44 ms | 1394 KiB | 15 Q