3v4l.org

run code in 300+ PHP versions simultaneously
<?php function v_htmlspecialchars($string, $flags = ENT_COMPAT, $encoding = 'ISO-8869-2', $doubleEncode = false) { return htmlspecialchars($string, $flags, $encoding, $doubleEncode); } for (i=0; i<1000000; i++) { v_htmlspecialchars('za:"&<>ź\'ółćgęśląjaźń',ENT_QUOTES,'UTF-8'); }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '=', expecting ';' in /in/BBAGB on line 8
Process exited with code 255.

preferences:
171.55 ms | 1395 KiB | 60 Q