3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Patient will come in earlier\n\nPacket emailed 2012-06-14 11:30:06\n\nPacket emailed 2012-06-12 12:32:04"; $pattern = "/(packet )(e{0,1}mailed) (\d{4}-)(\d{2}-\d{2})/i"; preg_match_all($pattern,$string,$matches); print_r($matches); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2CZ0
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Patient+will+come+in+earlier%0A%0APacket+emailed+2012-06-14+11%3A30%3A06%0A%0APacket+emailed+2012-06-12+12%3A32%3A04'
    4     1        ASSIGN                                                   !1, '%2F%28packet+%29%28e%7B0%2C1%7Dmailed%29+%28%5Cd%7B4%7D-%29%28%5Cd%7B2%7D-%5Cd%7B2%7D%29%2Fi'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.34 ms | 1394 KiB | 17 Q