3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $description = "<p>30ml plastic medicine measure, of clear polypropylene with 1ml minor graduations and 5ml major graduations</p> <span class="hr"></span> <ul> <li>1ml minor graduations and 5ml major graduations from 0ml to 30ml capacity</li> <li><strong>Clear plastic measure &#38;#150; you and your patient can see exactly how much medicine has been poured</strong></li> <li>Suitable for GP surgeries and care homes</li> <li>Pack size: 100 x 30ml medicine measures</li> </ul> <span class="hr"></span> <p>We also provide [prod model=&#38;#34;70420&#38;#34;/], [prod model=&#38;#34;62805&#38;#34;/] and many other [cat cat=&#38;#34;first aid medical supplies&#38;#34;/].</p>"; preg_match_all("/\[[^\]]*]/", $description, $shortcodes); var_dump($shortcodes);
Output for 5.4.0 - 5.4.34
Parse error: syntax error, unexpected 'hr' (T_STRING) in /in/DXQjX on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/DXQjX on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/DXQjX on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/DXQjX on line 3
Process exited with code 255.