3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(!!preg_match('#\\b' . preg_quote("like", '#') . '\\b#i', "I like tea") || !!preg_match('#\\b' . preg_quote("like", '#') . '\\b#i', "I like"));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/gmR1D
function name:  (null)
number of ops:  30
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      '%23%5Cb', $0
          7        CONCAT                                           ~2      ~1, '%5Cb%23i'
          8        SEND_VAL                                                 ~2
          9        SEND_VAL                                                 'I+like+tea'
         10        DO_ICALL                                         $3      
         11        BOOL_NOT                                         ~4      $3
         12        BOOL_NOT                                         ~5      ~4
         13      > JMPNZ_EX                                         ~5      ~5, ->27
         14    >   INIT_FCALL                                               'preg_match'
         15        INIT_FCALL                                               'preg_quote'
         16        SEND_VAL                                                 'like'
         17        SEND_VAL                                                 '%23'
         18        DO_ICALL                                         $6      
         19        CONCAT                                           ~7      '%23%5Cb', $6
         20        CONCAT                                           ~8      ~7, '%5Cb%23i'
         21        SEND_VAL                                                 ~8
         22        SEND_VAL                                                 'I+like'
         23        DO_ICALL                                         $9      
         24        BOOL_NOT                                         ~10     $9
         25        BOOL_NOT                                         ~11     ~10
         26        BOOL                                             ~5      ~11
         27    >   SEND_VAL                                                 ~5
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.83 ms | 1387 KiB | 19 Q