3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ln = "A/RADIUdS ADMITS VALUE 20"; $trg = "A/RADIdUS"; $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/vmvLK
function name:  (null)
number of ops:  14
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%2FRADIUdS+ADMITS+VALUE+20'
    4     1        ASSIGN                                                   !1, 'A%2FRADIdUS'
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'preg_match'
          4        ROPE_INIT                                     3  ~8      '%23'
          5        ROPE_ADD                                      1  ~8      ~8, !1
          6        ROPE_END                                      2  ~7      ~8, '%5CsADMITS%5Cs%28VALUE%29%5Cs%28%5B%5E%5Cs%5D%2B%29%23'
          7        SEND_VAL                                                 ~7
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !2
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
    7    12        ECHO                                                     !3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.42 ms | 1394 KiB | 15 Q