3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Exmaple.com</title> <style> </style> </head> <body> <div class="account-details"> <b>Account Name</b>: <?php echo e(company.name); ?><br> <b>Plan</b>: <?php echo e(plan.name); ?><br> <b>Source</b>: <?php echo e(source.name); ?><br> <b>Source Type</b>: <?php echo e(source.source_type.name); ?><br> <br> </div> <div class="welcome" style="font-family:Arial;font-size:small"> Hi <?php echo e(user.first_name); ?>,<br> <br> There seems to be a problem blah blah blah<br> <br> Details of the problem are:<br> <?php echo e(sourceMessage); ?><br> <br> You can check and update the source here:<br> https://example.com<br> <br> <br> <span style="font-size:12.8px"> Kind regards,<br> <br> Test Team<br> <br> Email: <a href="mailto:test@example.com" target="_blank">example.com</a><br> Website: <a href="http://example.com" target="_blank">example.com</a><br> </span> </div> </body> </html>'; $html = preg_replace_callback('/(<\?php\s+.*?\be\()([^)]+\))/', function ($m) { return "{$m[1]}$" . str_replace('.', '->', $m[2]); }, $html); echo $html;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ivq5r
function name:  (null)
number of ops:  10
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%21doctype+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A%3Chead%3E%0A++++%3Cmeta+charset%3D%22UTF-8%22%3E%0A++++%3Ctitle%3EExmaple.com%3C%2Ftitle%3E%0A++++%3Cstyle%3E%0A++++%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%0A++++%3Cdiv+class%3D%22account-details%22%3E%0A++++++++%3Cb%3EAccount+Name%3C%2Fb%3E%3A+%3C%3Fphp+echo+e%28company.name%29%3B+%3F%3E%3Cbr%3E%0A++++++++%3Cb%3EPlan%3C%2Fb%3E%3A+%3C%3Fphp+echo+e%28plan.name%29%3B+%3F%3E%3Cbr%3E%0A++++++++%3Cb%3ESource%3C%2Fb%3E%3A+%3C%3Fphp+echo+e%28source.name%29%3B+%3F%3E%3Cbr%3E%0A++++++++%3Cb%3ESource+Type%3C%2Fb%3E%3A+%3C%3Fphp+echo+e%28source.source_type.name%29%3B+%3F%3E%3Cbr%3E%0A++++++++%3Cbr%3E%0A++++%3C%2Fdiv%3E%0A%0A++++%3Cdiv+class%3D%22welcome%22+style%3D%22font-family%3AArial%3Bfont-size%3Asmall%22%3E%0A++++++++Hi+%3C%3Fphp+echo+e%28user.first_name%29%3B+%3F%3E%2C%3Cbr%3E%0A++++++++%3Cbr%3E%0A++++++++There+seems+to+be+a+problem+blah+blah+blah%3Cbr%3E%0A++++++++%3Cbr%3E%0A++++++++Details+of+the+problem+are%3A%3Cbr%3E%0A++++++++%3C%3Fphp+echo+e%28sourceMessage%29%3B+%3F%3E%3Cbr%3E%0A++++++++%3Cbr%3E%0A++++++++You+can+check+and+update+the+source+here%3A%3Cbr%3E%0A++++++++https%3A%2F%2Fexample.com%3Cbr%3E%0A++++++++%3Cbr%3E%0A++++++++%3Cbr%3E%0A++++++++%3Cspan+style%3D%22font-size%3A12.8px%22%3E%0A++++++++++++Kind+regards%2C%3Cbr%3E%0A++++++++++++%3Cbr%3E%0A+++++++++++Test+Team%3Cbr%3E%0A++++++++++++%3Cbr%3E%0A++++++++++++Email%3A+%3Ca+href%3D%22mailto%3Atest%40example.com%22+target%3D%22_blank%22%3Eexample.com%3C%2Fa%3E%3Cbr%3E%0A++++++++++++Website%3A+%3Ca+href%3D%22http%3A%2F%2Fexample.com%22+target%3D%22_blank%22%3Eexample.com%3C%2Fa%3E%3Cbr%3E%0A++++++++%3C%2Fspan%3E%0A++++%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   45     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%28%3C%5C%3Fphp%5Cs%2B.%2A%3F%5Cbe%5C%28%29%28%5B%5E%29%5D%2B%5C%29%29%2F'
   46     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   48     4        SEND_VAL                                                 ~2
   49     5        SEND_VAR                                                 !0
   45     6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
   50     8        ECHO                                                     !0
   51     9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ivq5r
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   RECV                                             !0      
   47     1        FETCH_DIM_R                                      ~1      !0, 1
          2        NOP                                                      
          3        FAST_CONCAT                                      ~2      ~1, '%24'
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '.'
          6        SEND_VAL                                                 '-%3E'
          7        FETCH_DIM_R                                      ~3      !0, 2
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        CONCAT                                           ~5      ~2, $4
         11      > RETURN                                                   ~5
   48    12*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
215.6 ms | 958 KiB | 15 Q