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;
Output for git.master, git.master_jit, rfc.property-hooks
<!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>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.62 ms | 409 KiB | 5 Q