3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '[^A-Za-z0-9 \r\n@£$¥èéùìòÇØøÅå\u0394_\u03A6\u0393\u039B\u03A9\u03A0\u03A8\u03A3\u0398\u039EÆæßÉ!"#$%&amp;\'()*+,\-./:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]|\u20AC]+'; $data = 'asdf‘'; $tmp = []; $result = preg_match_all($x,$data,$tmp);
Output for 7.1.6, 7.3.24 - 7.3.33, 7.4.12 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
Warning: preg_match_all(): No ending matching delimiter ']' found in /in/uZpZ2 on line 5

preferences:
86.56 ms | 407 KiB | 5 Q