3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('~^(' . preg_quote('hello\#world', '~') . ')\z~', 'hello#world'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O8B5o
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        INIT_FCALL                                               'preg_quote'
          3        SEND_VAL                                                 'hello%5C%23world'
          4        SEND_VAL                                                 '%7E'
          5        DO_ICALL                                         $0      
          6        CONCAT                                           ~1      '%7E%5E%28', $0
          7        CONCAT                                           ~2      ~1, '%29%5Cz%7E'
          8        SEND_VAL                                                 ~2
          9        SEND_VAL                                                 'hello%23world'
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.44 ms | 999 KiB | 16 Q