3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(!!preg_match('#b' . preg_quote("like", '#') . 'b#i', "I like tea"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vPk2V
function name:  (null)
number of ops:  16
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                                                 'like'
         4        SEND_VAL                                                 '%23'
         5        DO_ICALL                                         $0      
         6        CONCAT                                           ~1      '%23b', $0
         7        CONCAT                                           ~2      ~1, 'b%23i'
         8        SEND_VAL                                                 ~2
         9        SEND_VAL                                                 'I+like+tea'
        10        DO_ICALL                                         $3      
        11        BOOL_XOR                                         ~4      $3
        12        BOOL_XOR                                         ~5      ~4
        13        SEND_VAL                                                 ~5
        14        DO_ICALL                                                 
        15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
11.22 ms | 410 KiB | 7 Q