3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<!doctype html> <html> <head> <script type="text/javascript">alert(fasdfsd)</script> <meta charset="utf-8"> <script type="text/javascript"> var fasdfsd="fasdfsd"; </script> <script type="text/javascript" src="http://google.adv.js"></script> <title> hey </title> <script> alert("hello"); </script> <script type="text/javascript" src="lfasd.js"></script> </head> <body> hey </body> </html>'; $str = preg_replace("/<script[^>]*?>.*?</script>/","",$str); echo html_entity_decode($str);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): Unknown modifier 'c' in /in/6F17A on line 23 Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/6F17A on line 24

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:
68.69 ms | 401 KiB | 8 Q