3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input =- 'test <span>1234</span><span>12345</span>test<span>5678</span><span>12345</span>test'; print_r(preg_match("/(<span>\d{4}<\/span>)/", $input, $output););
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Parse error: syntax error, unexpected ';' in /in/iASLb on line 9
Process exited with code 255.

preferences:
187.39 ms | 1395 KiB | 65 Q