3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function NewGuid() {  $s = strtoupper(md5(uniqid(rand(),true)));  $guidText = substr($s,0,8) . '-' .              substr($s,8,4) . '-' .              substr($s,12,4). '-' .              substr($s,16,4). '-' .              substr($s,20);  return $guidText; }   echo NewGuid();
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$s' (T_VARIABLE) in /in/UeNgY on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/UeNgY on line 4
Process exited with code 255.