3v4l.org

run code in 300+ PHP versions simultaneously
<?php //get the first occurance which is |~hey~| $string = '|~hey~|~look~|~behind~|'; preg_match('!\|~(.*)~\|!', $string, $matched); var_dump($matched);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eQitc
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $matched
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%7C%7Ehey%7E%7C%7Elook%7E%7C%7Ebehind%7E%7C'
    6     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%21%5C%7C%7E%28.%2A%29%7E%5C%7C%21'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.9 ms | 997 KiB | 15 Q