3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '}' in /in/Ao9Y4 on line 10
Process exited with code 255.

preferences:
184.59 ms | 1395 KiB | 55 Q