3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_POST[1] = 'lolol'; $_POST[2] = '1l1l1l'; $_POST[3] = '<p><p>'; $_POST[4] = '*.*""'; function protect(){ addslashes($_POST); array_map("strip_tags",$_POST); } foreach($_POST as $k => $v){ echo $k,$v; } return $_POST;

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
1lolol21l1l1l3<p><p>4*.*""
Output for Arrow functions
1lolol21l1l1l3<p><p>4*.*""
Output for Object typehint
1lolol21l1l1l3<p><p>4*.*""
Output for Array change keys
1lolol21l1l1l3<p><p>4*.*""
Output for Lexical anon
1lolol21l1l1l3<p><p>4*.*""

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