3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "'\""; $arr = array(); $arr[] = "string : ".$str; $arr[] = "addslashes : ".addslashes($str); $arr[] = "stripslashes : ".stripslashes($str); $arr[] = "htmlentities : ".htmlentities($str); if($str == '\'"') $arr[] = "testing : '".$str."'"; } print_r($arr);
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '}' in /in/Ao9Y4 on line 10
Process exited with code 255.