3v4l.org

run code in 300+ PHP versions simultaneously
<?php $appt_notes = "Packet emailed 09-26-2014 14:21:47"; if (preg_match_all("/Packet (e{0,1}mailed) \d{4}-(\d{2}-\d{2})/i",$appt_notes,$matches,PREG_SET_ORDER)) { $packet_sentby = $matches[count($matches)-1][1]; $packet_date = $matches[count($matches)-1][2]; } else { $packet_sentby = ""; $packet_date = ""; } echo "Notes = $appt_notes <br>\n<br>\n"; echo $packet_sentby . "<br>\n" . $packet_date; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U5uTE
function name:  (null)
number of ops:  29
compiled vars:  !0 = $appt_notes, !1 = $matches, !2 = $packet_sentby, !3 = $packet_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Packet+emailed+09-26-2014+14%3A21%3A47'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2FPacket+%28e%7B0%2C1%7Dmailed%29+%5Cd%7B4%7D-%28%5Cd%7B2%7D-%5Cd%7B2%7D%29%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->19
    6     8    >   COUNT                                            ~6      !1
          9        SUB                                              ~7      ~6, 1
         10        FETCH_DIM_R                                      ~8      !1, ~7
         11        FETCH_DIM_R                                      ~9      ~8, 1
         12        ASSIGN                                                   !2, ~9
    7    13        COUNT                                            ~11     !1
         14        SUB                                              ~12     ~11, 1
         15        FETCH_DIM_R                                      ~13     !1, ~12
         16        FETCH_DIM_R                                      ~14     ~13, 2
         17        ASSIGN                                                   !3, ~14
         18      > JMP                                                      ->21
    9    19    >   ASSIGN                                                   !2, ''
   10    20        ASSIGN                                                   !3, ''
   13    21    >   ROPE_INIT                                     3  ~19     'Notes+%3D+'
         22        ROPE_ADD                                      1  ~19     ~19, !0
         23        ROPE_END                                      2  ~18     ~19, '+%3Cbr%3E%0A%3Cbr%3E%0A'
         24        ECHO                                                     ~18
   14    25        CONCAT                                           ~21     !2, '%3Cbr%3E%0A'
         26        CONCAT                                           ~22     ~21, !3
         27        ECHO                                                     ~22
   17    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.7 ms | 1396 KiB | 15 Q