3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "dangers:(cloud1条 OR deep1条)"; var_dump(preg_match_all('/((?<key>[^\:\(\)]+)\s*\:\s*\((([^\(])*))?/i', $str, $m)); var_dump($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/81ZN6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'dangers%3A%28cloud1%E6%9D%A1+OR+deep1%E6%9D%A1%29'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%28%28%3F%3Ckey%3E%5B%5E%5C%3A%5C%28%5C%29%5D%2B%29%5Cs%2A%5C%3A%5Cs%2A%5C%28%28%28%5B%5E%5C%28%5D%29%2A%29%29%3F%2Fi'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
    5     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:
143.56 ms | 1385 KiB | 17 Q