3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( //"one" => "'1", //"one" => chr(0xbf27), "one" => CHAR(34,37,97,100,109,105,110,37,34)/*, "two" => 2, "three" => 3, "seventeen" => 17 ); foreach ($a as $k => $v) { echo "$v...\n"; //$str = $v; $str = addslashes($v); echo "\$a[$k] => $str.\n"; } ?>
Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
Warning: Unterminated comment starting line 6 in /in/F1a7n on line 6 Parse error: syntax error, unexpected end of file, expecting ')' in /in/F1a7n on line 23
Process exited with code 255.

preferences:
186.2 ms | 1395 KiB | 63 Q