3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = ' <!DOCTYPE html> <html> <head> <title>MSS</title> <style type="text/mss"> p.class1 { color: blue; } p.class2 { color: red; } </style> </head> <body> <p class="class1">Hello World!</p> <p class="class2">This document use MSS.</p> </body> </html>'; $msscodes = []; preg_match('#<style type="text/mss">(.*)</style>#i', $html $msscodes); var_dump($msscodes); ?>
based on OY1Ld
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '$msscodes' (T_VARIABLE), expecting ',' or ')' in /in/LJ9kT on line 23
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected '$msscodes' (T_VARIABLE) in /in/LJ9kT on line 23
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/LJ9kT on line 22
Process exited with code 255.