3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('&'.preg_quote('&oops').'pattern&', "srring"); preg_match('&'.preg_quote('&oops', '&').'pattern&', "srring");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1J7nFF
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        INIT_FCALL                                               'preg_quote'
          2        SEND_VAL                                                 '%26oops'
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      '%26', $0
          5        CONCAT                                           ~2      ~1, 'pattern%26'
          6        SEND_VAL                                                 ~2
          7        SEND_VAL                                                 'srring'
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'preg_match'
         10        INIT_FCALL                                               'preg_quote'
         11        SEND_VAL                                                 '%26oops'
         12        SEND_VAL                                                 '%26'
         13        DO_ICALL                                         $4      
         14        CONCAT                                           ~5      '%26', $4
         15        CONCAT                                           ~6      ~5, 'pattern%26'
         16        SEND_VAL                                                 ~6
         17        SEND_VAL                                                 'srring'
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.39 ms | 1011 KiB | 15 Q