3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "---------- Forwarded message ---------- From: Stephanie Stevens <teststeph@hotmail.com> Date: 9 October 2014 16:14 Subject: My application ref:5996966 To: 'steph@dataharvesting.com' <steph@dataharvesting.com> Hi Can you tell me how long the wait is until I hear back about my application? kind regards Joe Bloggs"; preg_match("/From: (.*?) \<(.*?)\>\n/i", $str, $matches); var_dump($matches); $str = str_replace("<{$matches[2]}>", "({$matches[2]})", $str); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PagsQ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '----------+Forwarded+message+----------%0AFrom%3A+Stephanie+Stevens+%3Cteststeph%40hotmail.com%3E%0ADate%3A+9+October+2014+16%3A14%0ASubject%3A+My+application+ref%3A5996966%0ATo%3A+%27steph%40dataharvesting.com%27+%3Csteph%40dataharvesting.com%3E%0A%0A%0AHi%0A%0ACan+you+tell+me+how+long+the+wait+is+until+I+hear+back+about+my+application%3F%0A%0Akind+regards%0A%0AJoe+Bloggs'
   19     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2FFrom%3A+%28.%2A%3F%29+%5C%3C%28.%2A%3F%29%5C%3E%0A%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   21     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   23     9        INIT_FCALL                                               'str_replace'
         10        ROPE_INIT                                     3  ~7      '%3C'
         11        FETCH_DIM_R                                      ~5      !1, 2
         12        ROPE_ADD                                      1  ~7      ~7, ~5
         13        ROPE_END                                      2  ~6      ~7, '%3E'
         14        SEND_VAL                                                 ~6
         15        ROPE_INIT                                     3  ~11     '%28'
         16        FETCH_DIM_R                                      ~9      !1, 2
         17        ROPE_ADD                                      1  ~11     ~11, ~9
         18        ROPE_END                                      2  ~10     ~11, '%29'
         19        SEND_VAL                                                 ~10
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !0, $13
   25    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.26 ms | 1395 KiB | 19 Q