3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = '348'; var_dump(preg_match('/\b'.$b.'\b/','348,12, 47',$matches)); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HPb2q
function name:  (null)
number of ops:  15
compiled vars:  !0 = $b, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '348'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match'
          3        CONCAT                                           ~3      '%2F%5Cb', !0
          4        CONCAT                                           ~4      ~3, '%5Cb%2F'
          5        SEND_VAL                                                 ~4
          6        SEND_VAL                                                 '348%2C12%2C+47'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.66 ms | 1446 KiB | 16 Q