3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/An attempt: hello/'; $value = 'An Attempt: hello'; var_dump( preg_match($regex, $value); );
Output for 5.3.4 - 5.3.27, 5.4.0 - 5.4.21
Parse error: syntax error, unexpected ';' in /in/IAt8P on line 9
Process exited with code 255.

preferences:
178.52 ms | 1395 KiB | 53 Q